summaryrefslogtreecommitdiff
path: root/libavformat/bink.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/bink.c')
-rw-r--r--libavformat/bink.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/bink.c b/libavformat/bink.c
index 22beb4cbbd..4622f89e5a 100644
--- a/libavformat/bink.c
+++ b/libavformat/bink.c
@@ -98,7 +98,7 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
return AVERROR(EIO);
}
- avio_seek(pb, 4, SEEK_CUR);
+ avio_skip(pb, 4);
vst->codec->width = avio_rl32(pb);
vst->codec->height = avio_rl32(pb);
@@ -127,7 +127,7 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
}
if (bink->num_audio_tracks) {
- avio_seek(pb, 4 * bink->num_audio_tracks, SEEK_CUR);
+ avio_skip(pb, 4 * bink->num_audio_tracks);
for (i = 0; i < bink->num_audio_tracks; i++) {
ast = av_new_stream(s, 1);
@@ -169,7 +169,7 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
keyframe ? AVINDEX_KEYFRAME : 0);
}
- avio_seek(pb, 4, SEEK_CUR);
+ avio_skip(pb, 4);
bink->current_track = -1;
return 0;
@@ -225,7 +225,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
AV_RL32(pkt->data) / (2 * s->streams[bink->current_track]->codec->channels);
return 0;
} else {
- avio_seek(pb, audio_size, SEEK_CUR);
+ avio_skip(pb, audio_size);
}
}