[FFmpeg-cvslog] avcodec/av1dec: reset the fragment on extradata reading failure

James Almer git at videolan.org
Fri Jun 2 20:07:30 EEST 2023


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Jun  2 14:07:20 2023 -0300| [4da14c302fe43c5692316f1a0540323b185dec56] | committer: James Almer

avcodec/av1dec: reset the fragment on extradata reading failure

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4da14c302fe43c5692316f1a0540323b185dec56
---

 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;



More information about the ffmpeg-cvslog mailing list