Revision e356fc57 libavformat/swfdec.c

View differences:

libavformat/swfdec.c
70 70
    /* skip rectangle size */
71 71
    nbits = avio_r8(pb) >> 3;
72 72
    len = (4 * nbits - 3 + 7) / 8;
73
    url_fskip(pb, len);
73
    avio_seek(pb, len, SEEK_CUR);
74 74
    swf->frame_rate = avio_rl16(pb); /* 8.8 fixed */
75 75
    avio_rl16(pb); /* frame count */
76 76

  
......
159 159
                st = s->streams[i];
160 160
                if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO && st->id == -1) {
161 161
            if (st->codec->codec_id == CODEC_ID_MP3) {
162
                url_fskip(pb, 4);
162
                avio_seek(pb, 4, SEEK_CUR);
163 163
                av_get_packet(pb, pkt, len-4);
164 164
            } else { // ADPCM, PCM
165 165
                av_get_packet(pb, pkt, len);
......
202 202
            return pkt->size;
203 203
        }
204 204
    skip:
205
        url_fskip(pb, len);
205
        avio_seek(pb, len, SEEK_CUR);
206 206
    }
207 207
    return 0;
208 208
}

Also available in: Unified diff