mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
webpdec: 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
This commit is contained in:
parent
ef8bf75151
commit
3480f16e72
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ gst_webp_dec_set_format (GstVideoDecoder * decoder, GstVideoCodecState * state)
|
|||
gst_video_codec_state_unref (webpdec->input_state);
|
||||
webpdec->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);
|
||||
|
|
Loading…
Reference in a new issue