aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-09-25 11:05:30 -0300
committerJames Almer <jamrial@gmail.com>2020-09-29 21:38:27 -0300
commit3392c1b05ea1a0b9a77bfb8075350af261cb0ab4 (patch)
treef0d079f11335e036acf851dc2771aed40d3e8c62
parentea4b10249d1a9211fb050961d99aeb1725f4f783 (diff)
downloadffmpeg-3392c1b05ea1a0b9a77bfb8075350af261cb0ab4.tar.gz
avcodec/av1dec: fix check for active sequence header
We clear the AV1RawSequenceHeader pointer on flush, not the relevant AVBufferRef. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/av1dec.c2
1 files changed, 1 insertions, 1 deletions
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;