Revision e356fc57 libavformat/vqf.c

View differences:

libavformat/vqf.c
72 72
    if (!st)
73 73
        return AVERROR(ENOMEM);
74 74

  
75
    url_fskip(s->pb, 12);
75
    avio_seek(s->pb, 12, SEEK_CUR);
76 76

  
77 77
    header_size = avio_rb32(s->pb);
78 78

  
......
101 101
            st->codec->channels = avio_rb32(s->pb) + 1;
102 102
            read_bitrate        = avio_rb32(s->pb);
103 103
            rate_flag           = avio_rb32(s->pb);
104
            url_fskip(s->pb, len-12);
104
            avio_seek(s->pb, len-12, SEEK_CUR);
105 105

  
106 106
            st->codec->bit_rate              = read_bitrate*1000;
107 107
            st->codec->bits_per_coded_sample = 16;
......
140 140
            av_log(s, AV_LOG_ERROR, "Unknown chunk: %c%c%c%c\n",
141 141
                   ((char*)&chunk_tag)[0], ((char*)&chunk_tag)[1],
142 142
                   ((char*)&chunk_tag)[2], ((char*)&chunk_tag)[3]);
143
            url_fskip(s->pb, FFMIN(len, header_size));
143
            avio_seek(s->pb, FFMIN(len, header_size), SEEK_CUR);
144 144
            break;
145 145
        }
146 146

  

Also available in: Unified diff