diff options
author | Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | 2009-02-27 15:51:15 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2009-02-27 15:51:15 +0000 |
commit | 7f8025349a0448ac5226a4071ea88a132b4e47ff (patch) | |
tree | e58bfc209599c66e3c2c48541f5052566b9df4ce /libavcodec/mpegvideo.c | |
parent | a4f3fdfa8310d0616f31875b1dc8782fb7b7f37a (diff) | |
download | ffmpeg-streaming-7f8025349a0448ac5226a4071ea88a132b4e47ff.zip ffmpeg-streaming-7f8025349a0448ac5226a4071ea88a132b4e47ff.tar.gz |
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/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index b417c68..2af239b 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)){ |