1
0
Fork 0

HACK flic: Support seeking to pts = 0 for looped playback

This commit is contained in:
Hendrik Leppkes 2015-03-24 12:00:41 +01:00
parent f2f06ed6b4
commit 89103642cb
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5
1 changed files with 7 additions and 0 deletions

View File

@ -269,6 +269,13 @@ static int flic_read_seek(AVFormatContext *s, int stream_index,
int64_t pos, ts;
int index;
if (pts == 0) {
flic->frame_number = 0;
avio_seek(s->pb, s->streams[flic->video_stream_index]->codecpar->extradata_size, SEEK_SET);
return 0;
}
if (!sti->index_entries || stream_index != flic->video_stream_index)
return -1;