diff options
author | James Almer <jamrial@gmail.com> | 2019-03-24 18:22:32 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-03-25 19:59:22 -0300 |
commit | abf36b76de63b4cdf07e0f8360422ff4758f7f70 (patch) | |
tree | b2967aef57ae1438dac64fc2e98c3b78c98f166d | |
parent | a7cb7a2e4314956e06a351333ff8096fab9afa7f (diff) | |
download | ffmpeg-abf36b76de63b4cdf07e0f8360422ff4758f7f70.tar.gz |
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@gmail.com>
(cherry picked from commit 699d0c2a30d5b2a10b6a0f459a35d665dc22b2f1)
-rw-r--r-- | libavcodec/av1_parser.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/av1_parser.c b/libavcodec/av1_parser.c index 8df66498f4..0390de0b36 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_uninit(s->cbc, td); |