mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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>
This commit is contained in:
parent
ea4b10249d
commit
3392c1b05e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user