From patchwork Thu Jan 12 11:11:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 2192 X-Patchwork-Delegate: u@pkh.me Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.89.21 with SMTP id n21csp1222474vsb; Thu, 12 Jan 2017 03:11:49 -0800 (PST) X-Received: by 10.223.129.163 with SMTP id 32mr6723897wra.140.1484219509106; Thu, 12 Jan 2017 03:11:49 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id zv4si5371902wjc.62.2017.01.12.03.11.48; Thu, 12 Jan 2017 03:11:49 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 204BB68A25A; Thu, 12 Jan 2017 13:11:39 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe03-3.mx.upcmail.net (vie01a-dmta-pe03-3.mx.upcmail.net [62.179.121.162]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 41A6B68921C for ; Thu, 12 Jan 2017 13:11:32 +0200 (EET) Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe03.mx.upcmail.net with esmtp (Exim 4.87) (envelope-from ) id 1cRdIB-0001G5-6x for ffmpeg-devel@ffmpeg.org; Thu, 12 Jan 2017 12:11:39 +0100 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id XPBe1u0060S5wYM01PBfSo; Thu, 12 Jan 2017 12:11:39 +0100 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 12 Jan 2017 12:11:37 +0100 Message-Id: <20170112111137.3823-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.11.0 Subject: [FFmpeg-devel] [PATCH] avcodec/h264dec: Call ff_print_debug_info2() in flush codepath X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Found-by: ubitux Signed-off-by: Michael Niedermayer --- 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;