From: benoit Date: Fri, 27 Feb 2009 15:51:15 +0000 (+0000) Subject: Make ff_print_debug_info() a no-op when using HW acceleration. X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/ffmpeg.git/commitdiff_plain/1d4589b8af6fd1b434a9a22fdf3d3d63a68837fe Make ff_print_debug_info() a no-op when using HW acceleration. Patch by Gwenolé Beauchesne. git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17646 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index b417c68e4..2af239b6b 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)){