changeset 12728:5369a905c5a5

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")
author ranma
date Tue, 29 Jun 2004 13:10:37 +0000
parents 1856b9bfdc09
children d6d19231a149
files libmpdemux/aviheader.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/aviheader.c	Tue Jun 29 12:53:34 2004 +0000
+++ b/libmpdemux/aviheader.c	Tue Jun 29 13:10:37 2004 +0000
@@ -443,6 +443,13 @@
   
 }
 
+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;