mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08: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
@ -73,7 +73,7 @@ static int nc_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
|
||||
avio_r8(s->pb);
|
||||
size = avio_rl16(s->pb);
|
||||
avio_seek(s->pb, 9, SEEK_CUR);
|
||||
avio_skip(s->pb, 9);
|
||||
|
||||
if (size == 0) {
|
||||
av_log(s, AV_LOG_DEBUG, "Next packet size is zero\n");
|
||||
|
Reference in New Issue
Block a user