[FFmpeg-cvslog] r26398 - trunk/libavcodec/vp3.c

astrange subversion
Mon Jan 17 09:36:14 CET 2011


Author: astrange
Date: Mon Jan 17 09:36:13 2011
New Revision: 26398

Log:
VP3: remove an unnecessary static variable

Modified:
   trunk/libavcodec/vp3.c

Modified: trunk/libavcodec/vp3.c
==============================================================================
--- trunk/libavcodec/vp3.c	Sun Jan 16 23:08:34 2011	(r26397)
+++ trunk/libavcodec/vp3.c	Mon Jan 17 09:36:13 2011	(r26398)
@@ -1721,7 +1721,6 @@ static int vp3_decode_frame(AVCodecConte
     int buf_size = avpkt->size;
     Vp3DecodeContext *s = avctx->priv_data;
     GetBitContext gb;
-    static int counter = 0;
     int i;
 
     init_get_bits(&gb, buf, buf_size * 8);
@@ -1747,8 +1746,7 @@ static int vp3_decode_frame(AVCodecConte
 
     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->qps[0]);
-    counter++;
+            s->keyframe?"key":"", avctx->frame_number+1, s->qps[0]);
 
     s->skip_loop_filter = !s->filter_limit_values[s->qps[0]] ||
         avctx->skip_loop_filter >= (s->keyframe ? AVDISCARD_ALL : AVDISCARD_NONKEY);
@@ -1780,7 +1778,7 @@ static int vp3_decode_frame(AVCodecConte
             if (s->version)
             {
                 s->version = get_bits(&gb, 5);
-                if (counter == 1)
+                if (avctx->frame_number == 0)
                     av_log(s->avctx, AV_LOG_DEBUG, "VP version: %d\n", s->version);
             }
         }



More information about the ffmpeg-cvslog mailing list