[FFmpeg-cvslog] lavc/h264dec: Improve "Increasing reorder buffer" message loglevel.

Carl Eugen Hoyos git at videolan.org
Tue Aug 23 16:05:29 EEST 2016


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Aug 23 09:31:09 2016 +0200| [3c36d960f4a179fa52cdab419348b85945096ad3] | committer: Carl Eugen Hoyos

lavc/h264dec: Improve "Increasing reorder buffer" message loglevel.

Do not show the message for the first frame by default, show a
warning if increasing is necessary in the middle of the stream.

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

 libavcodec/h264dec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index 9c37d46..ed0b724 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -528,7 +528,8 @@ static void decode_postinit(H264Context *h, int setup_finished)
         h->last_pocs[0] = cur->poc;
         cur->mmco_reset = 1;
     } else if(h->avctx->has_b_frames < out_of_order && !sps->bitstream_restriction_flag){
-        av_log(h->avctx, AV_LOG_INFO, "Increasing reorder buffer to %d\n", out_of_order);
+        int loglevel = h->avctx->frame_number > 1 ? AV_LOG_WARNING : AV_LOG_VERBOSE;
+        av_log(h->avctx, loglevel, "Increasing reorder buffer to %d\n", out_of_order);
         h->avctx->has_b_frames = out_of_order;
     }
 



More information about the ffmpeg-cvslog mailing list