From 0588acaffaf601bf47088bfa19bef49b173beb8c Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Fri, 3 Jan 2014 21:31:11 +1100 Subject: [PATCH] avformat/bink: seek to first frame Some rare bink files include unused bytes between the frame table index and first frame data. Fixes ticket #3266. This patch has also been tested with non-seekable protocols. Signed-off-by: Peter Ross Signed-off-by: Michael Niedermayer --- libavformat/bink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/bink.c b/libavformat/bink.c index eb1e332b61..143a2422ab 100644 --- a/libavformat/bink.c +++ b/libavformat/bink.c @@ -188,7 +188,7 @@ static int read_header(AVFormatContext *s) keyframe ? AVINDEX_KEYFRAME : 0); } - avio_skip(pb, 4); + avio_seek(pb, vst->index_entries[0].pos, SEEK_SET); bink->current_track = -1; return 0; -- 2.11.0