diff mpegvideo.c @ 9068:520877b559cb libavcodec

Make ff_print_debug_info() a no-op when using HW acceleration. Patch by Gwenol«± Beauchesne.
author benoit
date Fri, 27 Feb 2009 15:51:15 +0000
parents f49b1c1d2c16
children bea68afbf199
line wrap: on
line diff
--- a/mpegvideo.c	Fri Feb 27 15:49:32 2009 +0000
+++ b/mpegvideo.c	Fri Feb 27 15:51:15 2009 +0000
@@ -1096,6 +1096,7 @@
  */
 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)){