changeset 4225:ed61ce9138ce

more movi_end mess
author arpi
date Thu, 17 Jan 2002 21:55:17 +0000
parents 1bdb44f7cba2
children 63baf6de03e1
files libmpdemux/aviheader.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/aviheader.c	Thu Jan 17 21:22:11 2002 +0000
+++ b/libmpdemux/aviheader.c	Thu Jan 17 21:55:17 2002 +0000
@@ -150,7 +150,10 @@
       }
       break;
     }
-    case ckidAVINEWINDEX: if(index_mode){
+    case ckidAVINEWINDEX:
+    if(demuxer->movi_end>stream_tell(demuxer->stream))
+	demuxer->movi_end=stream_tell(demuxer->stream); // fixup movi-end
+    if(index_mode){
       int i;
       priv->idx_size=size2>>4;
       mp_msg(MSGT_HEADER,MSGL_V,"Reading INDEX block, %d chunks for %ld frames\n",