mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-03 14:32:16 +02:00
avcodec/mpeg4videodec: change log level to waning for incomplete header messages
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4103172376
commit
bca1577ed3
@ -2241,7 +2241,7 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb)
|
|||||||
|
|
||||||
if (ctx->time_increment_bits == 0 ||
|
if (ctx->time_increment_bits == 0 ||
|
||||||
!(show_bits(gb, ctx->time_increment_bits + 1) & 1)) {
|
!(show_bits(gb, ctx->time_increment_bits + 1) & 1)) {
|
||||||
av_log(s->avctx, AV_LOG_ERROR,
|
av_log(s->avctx, AV_LOG_WARNING,
|
||||||
"hmm, seems the headers are not complete, trying to guess time_increment_bits\n");
|
"hmm, seems the headers are not complete, trying to guess time_increment_bits\n");
|
||||||
|
|
||||||
for (ctx->time_increment_bits = 1;
|
for (ctx->time_increment_bits = 1;
|
||||||
@ -2256,7 +2256,7 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
av_log(s->avctx, AV_LOG_ERROR,
|
av_log(s->avctx, AV_LOG_WARNING,
|
||||||
"my guess is %d bits ;)\n", ctx->time_increment_bits);
|
"my guess is %d bits ;)\n", ctx->time_increment_bits);
|
||||||
if (s->avctx->framerate.num && 4*s->avctx->framerate.num < 1<<ctx->time_increment_bits) {
|
if (s->avctx->framerate.num && 4*s->avctx->framerate.num < 1<<ctx->time_increment_bits) {
|
||||||
s->avctx->framerate.num = 1<<ctx->time_increment_bits;
|
s->avctx->framerate.num = 1<<ctx->time_increment_bits;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user