提交 3392c1b0 编写于 作者: J James Almer

avcodec/av1dec: fix check for active sequence header

We clear the AV1RawSequenceHeader pointer on flush, not the relevant AVBufferRef.
Signed-off-by: NJames Almer <jamrial@gmail.com>
上级 ea4b1024
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册