mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +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
+2
-2
@@ -81,7 +81,7 @@ static int yop_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
||||
video_dec->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||
video_dec->codec_id = CODEC_ID_YOP;
|
||||
|
||||
url_fskip(pb, 6);
|
||||
avio_seek(pb, 6, SEEK_CUR);
|
||||
|
||||
frame_rate = avio_r8(pb);
|
||||
yop->frame_size = avio_r8(pb) * 2048;
|
||||
@@ -153,7 +153,7 @@ static int yop_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
// Set position to the start of the frame
|
||||
pkt->pos = yop->video_packet.pos;
|
||||
|
||||
url_fskip(pb, yop->audio_block_length - ret);
|
||||
avio_seek(pb, yop->audio_block_length - ret, SEEK_CUR);
|
||||
|
||||
ret = avio_read(pb, yop->video_packet.data + yop->palette_size,
|
||||
actual_video_data_size);
|
||||
|
||||
Reference in New Issue
Block a user