Commit 0588acaf authored by Peter Ross's avatar Peter Ross Committed by Michael Niedermayer

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: 's avatarPeter Ross <pross@xvid.org>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2c759d70
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment