diff --git a/libavformat/bink.c b/libavformat/bink.c index 92ce26198ded9700afe6bfcf42c8bb85cfae3155..332edbb7d918e7c2e42e696bcad97303a983a348 100644 --- a/libavformat/bink.c +++ b/libavformat/bink.c @@ -194,7 +194,10 @@ static int read_header(AVFormatContext *s) return ret; } - avio_seek(pb, vst->index_entries[0].pos, SEEK_SET); + if (vst->index_entries) + avio_seek(pb, vst->index_entries[0].pos, SEEK_SET); + else + avio_skip(pb, 4); bink->current_track = -1; return 0;