You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
lavf: replace all uses of url_fskip with avio_seek
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
committed by
Ronald S. Bultje
parent
6b4aa5dac8
commit
e356fc57a2
@@ -501,7 +501,7 @@ void ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size)
|
||||
codec->bits_per_coded_sample = avio_rl16(pb);
|
||||
codec->channel_layout = avio_rl32(pb); /* dwChannelMask */
|
||||
id = avio_rl32(pb); /* 4 first bytes of GUID */
|
||||
url_fskip(pb, 12); /* skip end of GUID */
|
||||
avio_seek(pb, 12, SEEK_CUR); /* skip end of GUID */
|
||||
cbSize -= 22;
|
||||
size -= 22;
|
||||
}
|
||||
@@ -514,7 +514,7 @@ void ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size)
|
||||
|
||||
/* It is possible for the chunk to contain garbage at the end */
|
||||
if (size > 0)
|
||||
url_fskip(pb, size);
|
||||
avio_seek(pb, size, SEEK_CUR);
|
||||
}
|
||||
codec->codec_id = ff_wav_codec_get_id(id, codec->bits_per_coded_sample);
|
||||
if (codec->codec_id == CODEC_ID_AAC_LATM) {
|
||||
|
||||
Reference in New Issue
Block a user