diff options
author | Peter Ross <pross@xvid.org> | 2014-01-03 21:31:11 +1100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-03 13:50:11 +0100 |
commit | 0588acaffaf601bf47088bfa19bef49b173beb8c (patch) | |
tree | 6b0d60c5aa54f17f6389361ffcc1856a391d4435 | |
parent | 2c759d7018faf287049e1ae7d52cc12b3683915c (diff) | |
download | ffmpeg-0588acaffaf601bf47088bfa19bef49b173beb8c.tar.gz |
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 <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/bink.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |