[FFmpeg-cvslog] avcodec/av1dec: call ff_cbs_flush() on decoder flush

James Almer git at videolan.org
Wed Sep 30 03:43:18 EEST 2020


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Sep 24 18:54:14 2020 -0300| [aa5e49e46d3aa22cc805c85a982afac1405aede5] | committer: James Almer

avcodec/av1dec: call ff_cbs_flush() on decoder flush

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aa5e49e46d3aa22cc805c85a982afac1405aede5
---

 libavcodec/av1dec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index a30a496b4c..07026b7aeb 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -854,6 +854,8 @@ static void av1_decode_flush(AVCodecContext *avctx)
     av1_frame_unref(avctx, &s->cur_frame);
     s->raw_frame_header = NULL;
     s->raw_seq = NULL;
+
+    ff_cbs_flush(s->cbc);
 }
 
 AVCodec ff_av1_decoder = {



More information about the ffmpeg-cvslog mailing list