changeset 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 80f632c55670
children 8a74ab19d224
files mpegvideo.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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)){