diff options
author | James Almer <jamrial@gmail.com> | 2023-06-02 14:07:20 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-06-02 14:07:20 -0300 |
commit | 4da14c302fe43c5692316f1a0540323b185dec56 (patch) | |
tree | c3fb81ee6d1064609bcd6076fb5d843ee3ef103e /libavcodec/av1dec.c | |
parent | 8c6b931f4ca08abdaff4896cb2707c38d8483d80 (diff) | |
download | ffmpeg-4da14c302fe43c5692316f1a0540323b185dec56.tar.gz |
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.c | 2 |
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; |