Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-12 20:01:36 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-09-13 18:22:42 +0400
commit75f3e0ad9589d8baa89977955a839660442bd0fa (patch)
treecb9286add3b0ba605ae6ec7f7f5fd916cd268d4a /libavcodec
parentbc3d5173cc8f8be338c627fd5800fc042789c2d3 (diff)
mpegvideo: skip ff_print_debug_info() for VDPAU
Based on code by: MEANX / gruntster (Avidemux Rev 7990 — 2012-05-30 13:02:27) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 6b3d4e7b16..0719a65101 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -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;