From 15e4bd65b1807602bdb430338b5062769a3e0045 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 12 Aug 2012 00:27:57 +0200 Subject: [PATCH] vc1dec: support debug & FF_DEBUG_PICT_INFO. Signed-off-by: Michael Niedermayer --- libavcodec/vc1dec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index ba5ab56764..2fc4913729 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -5489,6 +5489,9 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data, } } + if (avctx->debug & FF_DEBUG_PICT_INFO) + av_log(v->s.avctx, AV_LOG_DEBUG, "pict_type: %c\n", av_get_picture_type_char(s->pict_type)); + if ((avctx->codec_id == AV_CODEC_ID_WMV3IMAGE || avctx->codec_id == AV_CODEC_ID_VC1IMAGE) && s->pict_type != AV_PICTURE_TYPE_I) { av_log(v->s.avctx, AV_LOG_ERROR, "Sprite decoder: expected I-frame\n");