mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 02:42:21 +00:00
parent
0728d64497
commit
05a2ce9326
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user