Revision 6ee99a7e libavcodec/vp3.c

View differences:

libavcodec/vp3.c
1721 1721
    int buf_size = avpkt->size;
1722 1722
    Vp3DecodeContext *s = avctx->priv_data;
1723 1723
    GetBitContext gb;
1724
    static int counter = 0;
1725 1724
    int i;
1726 1725

  
1727 1726
    init_get_bits(&gb, buf, buf_size * 8);
......
1747 1746

  
1748 1747
    if (s->avctx->debug & FF_DEBUG_PICT_INFO)
1749 1748
        av_log(s->avctx, AV_LOG_INFO, " VP3 %sframe #%d: Q index = %d\n",
1750
            s->keyframe?"key":"", counter, s->qps[0]);
1751
    counter++;
1749
            s->keyframe?"key":"", avctx->frame_number+1, s->qps[0]);
1752 1750

  
1753 1751
    s->skip_loop_filter = !s->filter_limit_values[s->qps[0]] ||
1754 1752
        avctx->skip_loop_filter >= (s->keyframe ? AVDISCARD_ALL : AVDISCARD_NONKEY);
......
1780 1778
            if (s->version)
1781 1779
            {
1782 1780
                s->version = get_bits(&gb, 5);
1783
                if (counter == 1)
1781
                if (avctx->frame_number == 0)
1784 1782
                    av_log(s->avctx, AV_LOG_DEBUG, "VP version: %d\n", s->version);
1785 1783
            }
1786 1784
        }

Also available in: Unified diff