Commit 5205cbf5 authored by alex's avatar alex

FF_DEBUG_PICT_INFO and CODEC_FLAG_GRAY support


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2577 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 73ff899b
...@@ -2406,7 +2406,8 @@ static void render_fragments(Vp3DecodeContext *s, ...@@ -2406,7 +2406,8 @@ static void render_fragments(Vp3DecodeContext *s,
} }
/* transform if this block was coded */ /* transform if this block was coded */
if (s->all_fragments[i].coding_method != MODE_COPY) { if ((s->all_fragments[i].coding_method != MODE_COPY) &&
!((s->avctx->flags & CODEC_FLAG_GRAY) && plane)) {
if ((s->all_fragments[i].coding_method == MODE_USING_GOLDEN) || if ((s->all_fragments[i].coding_method == MODE_USING_GOLDEN) ||
(s->all_fragments[i].coding_method == MODE_GOLDEN_MV)) (s->all_fragments[i].coding_method == MODE_GOLDEN_MV))
...@@ -2792,8 +2793,9 @@ static int vp3_decode_frame(AVCodecContext *avctx, ...@@ -2792,8 +2793,9 @@ static int vp3_decode_frame(AVCodecContext *avctx,
if (s->theora >= 0x030300) if (s->theora >= 0x030300)
skip_bits1(&gb); skip_bits1(&gb);
debug_vp3(" VP3 %sframe #%d: Q index = %d\n", if (s->avctx->debug & FF_DEBUG_PICT_INFO)
s->keyframe?"key":"", counter, s->quality_index); av_log(s->avctx, AV_LOG_INFO, " VP3 %sframe #%d: Q index = %d\n",
s->keyframe?"key":"", counter, s->quality_index);
counter++; counter++;
if (s->quality_index != s->last_quality_index) if (s->quality_index != s->last_quality_index)
......
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