From 4da14c302fe43c5692316f1a0540323b185dec56 Mon Sep 17 00:00:00 2001 From: James Almer Date: Fri, 2 Jun 2023 14:07:20 -0300 Subject: [PATCH] avcodec/av1dec: reset the fragment on extradata reading failure Signed-off-by: James Almer --- libavcodec/av1dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index d63e792113..e7f98a6c81 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -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;