Skip to content
Snippets Groups Projects
Commit 7d37e45f authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/mpeg4video_parser: fix spurious extradata parse warnings

parent 10411afd
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ static int mpeg4_decode_header(AVCodecParserContext *s1, AVCodecContext *avctx, ...@@ -88,7 +88,7 @@ static int mpeg4_decode_header(AVCodecParserContext *s1, AVCodecContext *avctx,
if (avctx->extradata_size && pc->first_picture) { if (avctx->extradata_size && pc->first_picture) {
init_get_bits(gb, avctx->extradata, avctx->extradata_size * 8); init_get_bits(gb, avctx->extradata, avctx->extradata_size * 8);
ret = ff_mpeg4_decode_picture_header(dec_ctx, gb); ret = ff_mpeg4_decode_picture_header(dec_ctx, gb);
if (ret < 0) if (ret < -1)
av_log(avctx, AV_LOG_WARNING, "Failed to parse extradata\n"); av_log(avctx, AV_LOG_WARNING, "Failed to parse extradata\n");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment