diff options
author | ranma <ranma@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-06-29 13:10:37 +0000 |
---|---|---|
committer | ranma <ranma@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-06-29 13:10:37 +0000 |
commit | 6839eacc5ae76dd8582015e44fa4101450dd7d11 (patch) | |
tree | d3c5a0c3c234c4743f6686705dde2b87bf88892a /libmpdemux | |
parent | efe068de91a38cfe4a88afe5c9ce1fec0fc0364b (diff) | |
download | mpv-6839eacc5ae76dd8582015e44fa4101450dd7d11.tar.bz2 mpv-6839eacc5ae76dd8582015e44fa4101450dd7d11.tar.xz |
If we don't have a NEWAVIINDEX chunk, but have an OpenDML index,
use it even if there is no AVIX RIFF-Chunk.
(See also <40D2E910.2000708@comcast.net> "Non-seeking OpenDML AVI")
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12729 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/aviheader.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libmpdemux/aviheader.c b/libmpdemux/aviheader.c index 75eb5c8193..3cf7a26dee 100644 --- a/libmpdemux/aviheader.c +++ b/libmpdemux/aviheader.c @@ -443,6 +443,13 @@ while(1){ } +if (priv->suidx_size > 0 && priv->idx_size == 0) { + /* + * No NEWAVIINDEX, but we got an OpenDML index. + */ + priv->isodml = 1; +} + if (priv->isodml && (index_mode==-1 || index_mode==0)) { int i, j, k; int safety=1000; |