mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
vmncdec: 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
6fc64ebf5d
commit
5294a68122
1 changed files with 4 additions and 3 deletions
|
@ -848,9 +848,10 @@ gst_vmnc_dec_set_format (GstVideoDecoder * decoder, GstVideoCodecState * state)
|
|||
/* We require a format descriptor in-stream, so we ignore the info from the
|
||||
* container here. We just use the framerate */
|
||||
|
||||
/* Declare it packetized if a valid framerate was parsed, not ideal */
|
||||
gst_video_decoder_set_packetized (decoder,
|
||||
state->info.fps_n && state->info.fps_d);
|
||||
if (decoder->input_segment.format == GST_FORMAT_TIME)
|
||||
gst_video_decoder_set_packetized (decoder, TRUE);
|
||||
else
|
||||
gst_video_decoder_set_packetized (decoder, FALSE);
|
||||
|
||||
if (dec->input_state)
|
||||
gst_video_codec_state_unref (dec->input_state);
|
||||
|
|
Loading…
Reference in a new issue