changeset 1667:720c073661a1 libavcodec

FF_DEBUG_PICT_INFO and CODEC_FLAG_GRAY support
author alex
date Mon, 08 Dec 2003 18:26:22 +0000
parents b76ab3c968ab
children 30746f429df6
files vp3.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/vp3.c	Mon Dec 08 17:42:20 2003 +0000
+++ b/vp3.c	Mon Dec 08 18:26:22 2003 +0000
@@ -2406,7 +2406,8 @@
             }
 
             /* 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) ||
                     (s->all_fragments[i].coding_method == MODE_GOLDEN_MV))
@@ -2792,8 +2793,9 @@
     if (s->theora >= 0x030300)
         skip_bits1(&gb);
 
-    debug_vp3(" VP3 %sframe #%d: Q index = %d\n",
-	s->keyframe?"key":"", counter, s->quality_index);
+    if (s->avctx->debug & FF_DEBUG_PICT_INFO)
+	av_log(s->avctx, AV_LOG_INFO, " VP3 %sframe #%d: Q index = %d\n",
+	    s->keyframe?"key":"", counter, s->quality_index);
     counter++;
 
     if (s->quality_index != s->last_quality_index)