[FFmpeg-cvslog] avcodec/av1_parser: don't abort parsing the first frame if extradata parsing fails

James Almer git at videolan.org
Sun Mar 24 23:27:28 EET 2019


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Mar 24 18:22:32 2019 -0300| [699d0c2a30d5b2a10b6a0f459a35d665dc22b2f1] | committer: James Almer

avcodec/av1_parser: don't abort parsing the first frame if extradata parsing fails

The first frame contains the sequence header, which is needed to parse every
following frame.

This fixes parsing streams with broken extradata but correct packet data.

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

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

 libavcodec/av1_parser.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/av1_parser.c b/libavcodec/av1_parser.c
index bb8737a393..b916608d65 100644
--- a/libavcodec/av1_parser.c
+++ b/libavcodec/av1_parser.c
@@ -68,8 +68,7 @@ static int av1_parser_parse(AVCodecParserContext *ctx,
 
         ret = ff_cbs_read(s->cbc, td, avctx->extradata, avctx->extradata_size);
         if (ret < 0) {
-            av_log(avctx, AV_LOG_ERROR, "Failed to parse extradata.\n");
-            goto end;
+            av_log(avctx, AV_LOG_WARNING, "Failed to parse extradata.\n");
         }
 
         ff_cbs_fragment_reset(s->cbc, td);



More information about the ffmpeg-cvslog mailing list