diff options
author | Vineeth T M <vineeth.tm@samsung.com> | 2014-09-16 13:23:16 +0530 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-09-16 11:25:24 +0300 |
commit | e45e6382d6a62152c40c985110113ffc800455ae (patch) | |
tree | b5394b87eebd8d9e7a8848622b217c5c037da657 /ext | |
parent | 80fa912b06582722ac20829b7741de66964e721f (diff) |
pngdec: 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
Diffstat (limited to 'ext')
-rw-r--r-- | ext/libpng/gstpngdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/libpng/gstpngdec.c b/ext/libpng/gstpngdec.c index d4b8ef1b3..db8912598 100644 --- a/ext/libpng/gstpngdec.c +++ b/ext/libpng/gstpngdec.c @@ -161,7 +161,7 @@ gst_pngdec_set_format (GstVideoDecoder * decoder, GstVideoCodecState * state) gst_video_codec_state_unref (pngdec->input_state); pngdec->input_state = gst_video_codec_state_ref (state); - 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 (decoder, TRUE); else gst_video_decoder_set_packetized (decoder, FALSE); |