avcodec/av1dec: call ff_cbs_flush() on decoder flush
authorJames Almer <jamrial@gmail.com>
Thu, 24 Sep 2020 21:54:14 +0000 (18:54 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 30 Sep 2020 00:38:27 +0000 (21:38 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/av1dec.c

index a30a496..07026b7 100644 (file)
@@ -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 = {