mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
avauddec: If decoding a frame failed, skip it
Otherwise the next successfully decoded frame will get its timestamp and we will slowly let a/v sync drift apart. https://bugzilla.gnome.org/show_bug.cgi?id=765797
This commit is contained in:
parent
151cd32a10
commit
00ebf95e08
1 changed files with 3 additions and 0 deletions
|
@ -819,6 +819,9 @@ gst_ffmpegauddec_handle_frame (GstAudioDecoder * decoder, GstBuffer * inbuf)
|
||||||
ret =
|
ret =
|
||||||
gst_audio_decoder_finish_frame (GST_AUDIO_DECODER (ffmpegdec),
|
gst_audio_decoder_finish_frame (GST_AUDIO_DECODER (ffmpegdec),
|
||||||
ffmpegdec->outbuf, 1);
|
ffmpegdec->outbuf, 1);
|
||||||
|
else if (len < 0)
|
||||||
|
ret =
|
||||||
|
gst_audio_decoder_finish_frame (GST_AUDIO_DECODER (ffmpegdec), NULL, 1);
|
||||||
ffmpegdec->outbuf = NULL;
|
ffmpegdec->outbuf = NULL;
|
||||||
|
|
||||||
if (bsize > 0) {
|
if (bsize > 0) {
|
||||||
|
|
Loading…
Reference in a new issue