mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
@@ -326,6 +326,8 @@ static int yuv4_read_seek(AVFormatContext *s, int stream_index,
|
||||
|
||||
if (flags & AVSEEK_FLAG_BACKWARD)
|
||||
pts = FFMAX(0, pts - 1);
|
||||
if (pts < 0)
|
||||
return -1;
|
||||
pos = pts * s->packet_size;
|
||||
|
||||
if (avio_seek(s->pb, pos + s->internal->data_offset, SEEK_SET) < 0)
|
||||
|
||||
Reference in New Issue
Block a user