Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
9067:80f632c55670 | 9068:520877b559cb |
---|---|
1094 /** | 1094 /** |
1095 * prints debuging info for the given picture. | 1095 * prints debuging info for the given picture. |
1096 */ | 1096 */ |
1097 void ff_print_debug_info(MpegEncContext *s, AVFrame *pict){ | 1097 void ff_print_debug_info(MpegEncContext *s, AVFrame *pict){ |
1098 | 1098 |
1099 if(s->avctx->hwaccel) return; | |
1099 if(!pict || !pict->mb_type) return; | 1100 if(!pict || !pict->mb_type) return; |
1100 | 1101 |
1101 if(s->avctx->debug&(FF_DEBUG_SKIP | FF_DEBUG_QP | FF_DEBUG_MB_TYPE)){ | 1102 if(s->avctx->debug&(FF_DEBUG_SKIP | FF_DEBUG_QP | FF_DEBUG_MB_TYPE)){ |
1102 int x,y; | 1103 int x,y; |
1103 | 1104 |