mpegvideo: skip ff_print_debug_info() for VDPAU
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 12 Sep 2012 16:01:36 +0000 (18:01 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 13 Sep 2012 14:22:42 +0000 (16:22 +0200)
Based on code by: MEANX / gruntster (Avidemux Rev 7990 — 2012-05-30 13:02:27)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpegvideo.c

index 6b3d4e7..0719a65 100644 (file)
@@ -1512,9 +1512,11 @@ static void draw_arrow(uint8_t *buf, int sx, int sy, int ex,
  */
 void ff_print_debug_info(MpegEncContext *s, AVFrame *pict)
 {
-    if (s->avctx->hwaccel || !pict || !pict->mb_type)
+    if (   s->avctx->hwaccel || !pict || !pict->mb_type
+        || (s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU))
         return;
 
+
     if (s->avctx->debug & (FF_DEBUG_SKIP | FF_DEBUG_QP | FF_DEBUG_MB_TYPE)) {
         int x,y;