Commit 75f3e0ad authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bc3d5173
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment