]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/av1dec: fix check for active sequence header
authorJames Almer <jamrial@gmail.com>
Fri, 25 Sep 2020 14:05:30 +0000 (11:05 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 30 Sep 2020 00:38:27 +0000 (21:38 -0300)
We clear the AV1RawSequenceHeader pointer on flush, not the relevant AVBufferRef.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/av1dec.c

index f6b9fbbac3caf291145b92150c8df33db8f18b6f..a30a496b4ca88f1638379277d0a930193e1cc927 100644 (file)
@@ -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;