mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-29 14:30:27 +00:00
asfdec: short-circuit seeking to the start of stream
Bug-id: 43 Signed-off-by: Janne Grunau <janne-libav@jannau.net>
This commit is contained in:
parent
0ebb523f07
commit
0c08256596
@ -1465,6 +1465,13 @@ static int asf_read_seek(AVFormatContext *s, int stream_index,
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* explicitly handle the case of seeking to 0 */
|
||||
if (!pts) {
|
||||
asf_reset_header(s);
|
||||
avio_seek(s->pb, s->data_offset, SEEK_SET);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!asf->index_read)
|
||||
ret = asf_build_simple_index(s, stream_index);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user