changeset 2127:e6ce221dee06

.mov support can be disabled
author arpi
date Sun, 07 Oct 2001 21:59:49 +0000
parents 724af64311c8
children c948c818b5c3
files demux_mov.c demuxer.c
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/demux_mov.c	Sun Oct 07 21:39:47 2001 +0000
+++ b/demux_mov.c	Sun Oct 07 21:59:49 2001 +0000
@@ -440,12 +440,12 @@
     if(!stream_seek(demuxer->stream,priv->moov_start)) return 0; // ???
     lschunks(demuxer, 0, priv->moov_end, NULL);
 
-    // Build tables:
-    // ...
-    
+#if 1    
+    return 1;
+#else
     mp_msg(MSGT_DEMUX,MSGL_ERR,MSGTR_MOVnotyetsupp);
-
-    return 1;
+    return 0;
+#endif
 }
 
 // return value:
--- a/demuxer.c	Sun Oct 07 21:39:47 2001 +0000
+++ b/demuxer.c	Sun Oct 07 21:59:49 2001 +0000
@@ -455,9 +455,9 @@
 
 switch(file_format){
  case DEMUXER_TYPE_MOV: {
-  mov_read_header(demuxer);
-  sh_video=d_video->sh;if(sh_video) sh_video->ds=d_video;
-  sh_audio=d_audio->sh;if(sh_audio) sh_audio->ds=d_audio;
+  if(!mov_read_header(demuxer)) return NULL;
+//  sh_video=d_video->sh;if(sh_video) sh_video->ds=d_video;
+//  sh_audio=d_audio->sh;if(sh_audio) sh_audio->ds=d_audio;
   break;
  }
  case DEMUXER_TYPE_AVI: {