[FFmpeg-devel] [PATCH] avcodec/h264dec: Call ff_print_debug_info2() in flush codepath

Michael Niedermayer michael at niedermayer.cc
Thu Jan 12 13:11:37 EET 2017


Found-by: ubitux
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavcodec/h264dec.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index ed0b7246b7..dabcaf698a 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -1096,6 +1096,15 @@ static int h264_decode_frame(AVCodecContext *avctx, void *data,
             if (ret < 0)
                 return ret;
             *got_frame = 1;
+            if (CONFIG_MPEGVIDEO) {
+                ff_print_debug_info2(h->avctx, pict, NULL,
+                                    out->mb_type,
+                                    out->qscale_table,
+                                    out->motion_val,
+                                    NULL,
+                                    h->mb_width, h->mb_height, h->mb_stride, 1);
+            }
+
         }
 
         return buf_index;
-- 
2.11.0



More information about the ffmpeg-devel mailing list