[FFmpeg-devel] [PATCH] avformat/bink: seek to first frame
Peter Ross
pross at xvid.org
Fri Jan 3 11:31:11 CET 2014
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>
---
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;
--
1.8.3.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140103/ecead46e/attachment.asc>
More information about the ffmpeg-devel
mailing list