Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-02-28 16:57:55 +0300
committerMichael Niedermayer <michaelni@gmx.at>2011-03-03 16:15:08 +0300
commit74b3f67c9c0a237843a3379391b9929e9bcfcb6e (patch)
tree091bff9913be9ca258a72dfc0b11a91c424b1243 /libavformat/swfdec.c
parentf59d8ff8cd75796256344a5c635054427928c62d (diff)
lavf: replace all uses of url_fskip with avio_seek
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit e356fc57a2e9887370caec58d8aafeafd1f336dc)
Diffstat (limited to 'libavformat/swfdec.c')
-rw-r--r--libavformat/swfdec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c
index c567f264f1..b96b229133 100644
--- a/libavformat/swfdec.c
+++ b/libavformat/swfdec.c
@@ -70,7 +70,7 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap)
/* skip rectangle size */
nbits = avio_r8(pb) >> 3;
len = (4 * nbits - 3 + 7) / 8;
- url_fskip(pb, len);
+ avio_seek(pb, len, SEEK_CUR);
swf->frame_rate = avio_rl16(pb); /* 8.8 fixed */
avio_rl16(pb); /* frame count */
@@ -159,7 +159,7 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
st = s->streams[i];
if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO && st->id == -1) {
if (st->codec->codec_id == CODEC_ID_MP3) {
- url_fskip(pb, 4);
+ avio_seek(pb, 4, SEEK_CUR);
av_get_packet(pb, pkt, len-4);
} else { // ADPCM, PCM
av_get_packet(pb, pkt, len);
@@ -202,7 +202,7 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
return pkt->size;
}
skip:
- url_fskip(pb, len);
+ avio_seek(pb, len, SEEK_CUR);
}
return 0;
}