Make ff_print_debug_info() a no-op when using HW acceleration.
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Fri, 27 Feb 2009 15:51:15 +0000 (15:51 +0000)
committerBenoit Fouet <benoit.fouet@free.fr>
Fri, 27 Feb 2009 15:51:15 +0000 (15:51 +0000)
Patch by Gwenol√© Beauchesne.

Originally committed as revision 17646 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegvideo.c

index b417c68..2af239b 100644 (file)
@@ -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)){