diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-04 01:41:22 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-04 01:41:22 +0100 |
commit | fb266f59739fd6d44241cde6da2fe010e5f40e76 (patch) | |
tree | 1f1816f0442de130cf641db1fb951820991efa2d | |
parent | 7f92f3d8129f44bc2ed935e9d81735ffdcd9921f (diff) | |
download | ffmpeg-fb266f59739fd6d44241cde6da2fe010e5f40e76.tar.gz |
h264: show when has_b_frames is being increased.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/h264.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index debb07d286..17bbda8408 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1532,8 +1532,9 @@ static void decode_postinit(H264Context *h, int setup_finished){ else if (out_of_order && pics-1 == s->avctx->has_b_frames && s->avctx->has_b_frames < MAX_DELAYED_PIC_COUNT) { if (invalid + cnt < MAX_DELAYED_PIC_COUNT) { + if(cnt > s->avctx->has_b_frames) + av_log(s->avctx, AV_LOG_WARNING, "Increasing reorder buffer to %d\n", cnt); s->avctx->has_b_frames = FFMAX(s->avctx->has_b_frames, cnt); - av_log(0,0, "hbf: %d\n", s->avctx->has_b_frames ); } s->low_delay = 0; } else if (s->low_delay && |