diff mbox series

[FFmpeg-devel,6/8] avcodec/av1dec: fix check for active sequence header

Message ID 20200925144318.6194-6-jamrial@gmail.com
State Accepted
Commit 3392c1b05ea1a0b9a77bfb8075350af261cb0ab4
Headers show
Series [FFmpeg-devel,1/8] avcodec/cbs: add a flush callback to CodedBitstreamType | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

James Almer Sept. 25, 2020, 2:43 p.m. UTC
We clear the AV1RawSequenceHeader pointer on flush, not the relevant AVBufferRef.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/av1dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index f6b9fbbac3..a30a496b4c 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -713,7 +713,7 @@  static int av1_decode_frame(AVCodecContext *avctx, void *frame,
         // fall-through
         case AV1_OBU_FRAME:
         case AV1_OBU_FRAME_HEADER:
-            if (!s->seq_ref) {
+            if (!s->raw_seq) {
                 av_log(avctx, AV_LOG_ERROR, "Missing Sequence Header.\n");
                 ret = AVERROR_INVALIDDATA;
                 goto end;