mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 14:15:29 +01:00
lavf: replace avio_seek(SEEK_CUR) with avio_skip where it makes sense
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
committed by
Ronald S. Bultje
parent
cbf5d22d24
commit
45a8a02a41
@@ -76,9 +76,9 @@ static int xa_read_header(AVFormatContext *s,
|
||||
|
||||
st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
st->codec->codec_id = CODEC_ID_ADPCM_EA_MAXIS_XA;
|
||||
avio_seek(pb, 4, SEEK_CUR); /* Skip the XA ID */
|
||||
avio_skip(pb, 4); /* Skip the XA ID */
|
||||
xa->out_size = avio_rl32(pb);
|
||||
avio_seek(pb, 2, SEEK_CUR); /* Skip the tag */
|
||||
avio_skip(pb, 2); /* Skip the tag */
|
||||
st->codec->channels = avio_rl16(pb);
|
||||
st->codec->sample_rate = avio_rl32(pb);
|
||||
/* Value in file is average byte rate*/
|
||||
|
||||
Reference in New Issue
Block a user