diff options
author | Alexander Strange <astrange@ithinksw.com> | 2011-01-17 08:36:13 +0000 |
---|---|---|
committer | Alexander Strange <astrange@ithinksw.com> | 2011-01-17 08:36:13 +0000 |
commit | 6ee99a7e13bac17d887c5673040c27b29f2c97cc (patch) | |
tree | 8d3b6cf26f439718148249250db65886901eb5e8 /libavcodec/vp3.c | |
parent | 013291501fac5162e93bbcc9783e5e25d9cd2ab3 (diff) | |
download | ffmpeg-6ee99a7e13bac17d887c5673040c27b29f2c97cc.tar.gz |
VP3: remove an unnecessary static variable
Originally committed as revision 26398 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r-- | libavcodec/vp3.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 3883512caa..a2a3974b5d 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -1721,7 +1721,6 @@ static int vp3_decode_frame(AVCodecContext *avctx, 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(AVCodecContext *avctx, 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(AVCodecContext *avctx, 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); } } |