From 7f8025349a0448ac5226a4071ea88a132b4e47ff Mon Sep 17 00:00:00 2001
From: Gwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Date: Fri, 27 Feb 2009 15:51:15 +0000
Subject: [PATCH] =?UTF-8?q?Make=20ff=5Fprint=5Fdebug=5Finfo()=20a=20no-op?=
 =?UTF-8?q?=20when=20using=20HW=20acceleration.=20Patch=20by=20Gwenol?=
 =?UTF-8?q?=C3=A9=20Beauchesne.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Originally committed as revision 17646 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/mpegvideo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index b417c68e459..2af239b6bd7 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1096,6 +1096,7 @@ static void draw_arrow(uint8_t *buf, int sx, int sy, int ex, int ey, int w, int
  */
 void ff_print_debug_info(MpegEncContext *s, AVFrame *pict){
 
+    if(s->avctx->hwaccel) return;
     if(!pict || !pict->mb_type) return;
 
     if(s->avctx->debug&(FF_DEBUG_SKIP | FF_DEBUG_QP | FF_DEBUG_MB_TYPE)){
-- 
GitLab