[FFmpeg-cvslog] avformat/bink: seek to first frame
Peter Ross
git at videolan.org
Fri Jan 3 14:04:49 CET 2014
ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Fri Jan 3 21:31:11 2014 +1100| [0588acaffaf601bf47088bfa19bef49b173beb8c] | committer: 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: Peter Ross <pross at xvid.org>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0588acaffaf601bf47088bfa19bef49b173beb8c
---
libavformat/bink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/bink.c b/libavformat/bink.c
index eb1e332..143a242 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;
More information about the ffmpeg-cvslog
mailing list