1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avcodec/av1dec: reset the fragment on extradata reading failure

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2023-06-02 14:07:20 -03:00
parent 8c6b931f4c
commit 4da14c302f

View File

@@ -850,7 +850,7 @@ static av_cold int av1_decode_init(AVCodecContext *avctx)
avctx);
if (ret < 0) {
av_log(avctx, AV_LOG_WARNING, "Failed to read extradata.\n");
return ret;
goto end;
}
seq = ((CodedBitstreamAV1Context *)(s->cbc->priv_data))->sequence_header;