Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 7d37e45f6bac198bc986aeb987afe219edbbd45a)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -88,7 +88,7 @@ static int mpeg4_decode_header(AVCodecParserContext *s1, AVCodecContext *avctx, |
88 | 88 |
if (avctx->extradata_size && pc->first_picture) { |
89 | 89 |
init_get_bits(gb, avctx->extradata, avctx->extradata_size * 8); |
90 | 90 |
ret = ff_mpeg4_decode_picture_header(dec_ctx, gb); |
91 |
- if (ret < 0) |
|
91 |
+ if (ret < -1) |
|
92 | 92 |
av_log(avctx, AV_LOG_WARNING, "Failed to parse extradata\n"); |
93 | 93 |
} |
94 | 94 |
|