summaryrefslogtreecommitdiff
path: root/libavcodec/av1dec.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-06-02 14:07:20 -0300
committerJames Almer <jamrial@gmail.com>2023-06-02 14:07:20 -0300
commit4da14c302fe43c5692316f1a0540323b185dec56 (patch)
treec3fb81ee6d1064609bcd6076fb5d843ee3ef103e /libavcodec/av1dec.c
parent8c6b931f4ca08abdaff4896cb2707c38d8483d80 (diff)
avcodec/av1dec: reset the fragment on extradata reading failure
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/av1dec.c')
-rw-r--r--libavcodec/av1dec.c2
1 files changed, 1 insertions, 1 deletions
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;