Browse Source

vc1dec: support debug & FF_DEBUG_PICT_INFO.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
15e4bd65b1
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/vc1dec.c

+ 3
- 0
libavcodec/vc1dec.c View File

@@ -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");


Loading…
Cancel
Save