diff options
author | Vineeth T M <vineeth.tm@samsung.com> | 2014-09-16 13:24:15 +0530 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-09-16 11:25:31 +0300 |
commit | 448b1ac2b10b4b9cd8cba5316fc1c52bc3e65e0e (patch) | |
tree | eb161bc6572f0450978b8fe2c5c1b802ea0b1f55 | |
parent | e45e6382d6a62152c40c985110113ffc800455ae (diff) |
jpeggdec: modify wrong packetized mode logic
packetized mode is being set when framerate is being set
which is not correct. Changing the same by checking the
input segement format. If input segment is in TIME it is
Packetized, and if it is in BYTES it is not.
https://bugzilla.gnome.org/show_bug.cgi?id=736252
-rw-r--r-- | ext/jpeg/gstjpegdec.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c index 9b1af1c6b..e60e26193 100644 --- a/ext/jpeg/gstjpegdec.c +++ b/ext/jpeg/gstjpegdec.c @@ -595,10 +595,7 @@ gst_jpeg_dec_set_format (GstVideoDecoder * dec, GstVideoCodecState * state) GstJpegDec *jpeg = GST_JPEG_DEC (dec); GstVideoInfo *info = &state->info; - /* FIXME : previously jpegdec would handled input as packetized - * if the framerate was present. Here we consider it packetized if - * the fps is != 1/1 */ - if (GST_VIDEO_INFO_FPS_N (info) != 1 && GST_VIDEO_INFO_FPS_D (info) != 1) + if (decoder->input_segment.format == GST_FORMAT_TIME) gst_video_decoder_set_packetized (dec, TRUE); else gst_video_decoder_set_packetized (dec, FALSE); |