summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-02-27 15:51:15 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2009-02-27 15:51:15 +0000
commit7f8025349a0448ac5226a4071ea88a132b4e47ff (patch)
treee58bfc209599c66e3c2c48541f5052566b9df4ce /libavcodec
parenta4f3fdfa8310d0616f31875b1dc8782fb7b7f37a (diff)
Make ff_print_debug_info() a no-op when using HW acceleration.
Patch by Gwenolé Beauchesne. Originally committed as revision 17646 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index b417c68e45..2af239b6bd 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)){