[FFmpeg-cvslog] h264: put call to ff_print_debug_info2 under CONFIG_MPEGVIDEO.

Ronald S. Bultje git at videolan.org
Sun Mar 3 12:32:14 CET 2013


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Sat Mar  2 17:03:38 2013 -0800| [d98aa7cdc19b6392ab3a29b11305104338166ddc] | committer: Michael Niedermayer

h264: put call to ff_print_debug_info2 under CONFIG_MPEGVIDEO.

The code is located in mpegvideo, and it's likely that in a minimal
config, we don't want to include debug info anyway.

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

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

 libavcodec/h264.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 9d86e01..659c023 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4842,8 +4842,10 @@ not_extra:
 
     assert(pict->data[0] || !*got_frame);
 
-    ff_print_debug_info2(h->avctx, pict, h->er.mbskip_table, h->visualization_buffer, &h->low_delay,
-                         h->mb_width, h->mb_height, h->mb_stride, 1);
+    if (CONFIG_MPEGVIDEO) {
+        ff_print_debug_info2(h->avctx, pict, h->er.mbskip_table, h->visualization_buffer, &h->low_delay,
+                             h->mb_width, h->mb_height, h->mb_stride, 1);
+    }
 
     return get_consumed_bytes(buf_index, buf_size);
 }



More information about the ffmpeg-cvslog mailing list