mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-16 06:32:58 +00:00
avviddec: After draining frames, flush the libav decoder
Makes sure that there's really nothing stale left in the decoder after draining. https://bugzilla.gnome.org/show_bug.cgi?id=734661
This commit is contained in:
parent
1307b31e1c
commit
8c00a359d0
1 changed files with 1 additions and 0 deletions
|
@ -1451,6 +1451,7 @@ gst_ffmpegviddec_drain (GstFFMpegVidDec * ffmpegdec)
|
|||
if (len < 0 || have_data == 0)
|
||||
break;
|
||||
} while (try++ < 10);
|
||||
avcodec_flush_buffers (ffmpegdec->context);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue