[FFmpeg-cvslog] h264: show when has_b_frames is being increased.

Michael Niedermayer git at videolan.org
Sun Dec 4 02:47:09 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Dec  4 01:41:22 2011 +0100| [fb266f59739fd6d44241cde6da2fe010e5f40e76] | committer: Michael Niedermayer

h264: show when has_b_frames is being increased.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fb266f59739fd6d44241cde6da2fe010e5f40e76
---

 libavcodec/h264.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index debb07d..17bbda8 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 &&



More information about the ffmpeg-cvslog mailing list