[Mplayer-cvslog] CVS: main/libmpdemux demux_nsv.c,1.7,1.8
    Roberto Togni CVS 
    syncmail at mplayerhq.hu
       
    Sun Jul 25 17:38:10 CEST 2004
    
        - Previous message: [Mplayer-cvslog] 	CVS: main/libvo vo_gl.c, 1.44, 1.45 vo_gl2.c, 1.50,	1.51 vo_x11.c, 1.138, 1.139 vo_xmga.c, 1.87, 1.88 vo_xover.c,	1.7, 1.8 vo_xv.c, 1.152, 1.153 vo_xvidix.c, 1.67,	1.68 vo_xvmc.c, 1.9, 1.10
- Next message: [Mplayer-cvslog] CVS: main/DOCS/tech patches.txt,1.20,1.21
-  Messages sorted by: 
              [ date ]
              [ thread ]
              [ subject ]
              [ author ]
         
  
CVS change done by Roberto Togni CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv12411
Modified Files:
	demux_nsv.c 
Log Message:
Fix -nosound and -novideo (bug #28)
Move audio fourcc assignement inside audio if()
Remove bogus VLB warning (codec missing, no demuxer problem)
Index: demux_nsv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_nsv.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- demux_nsv.c	25 Apr 2004 15:42:44 -0000	1.7
+++ demux_nsv.c	25 Jul 2004 15:38:08 -0000	1.8
@@ -210,25 +210,18 @@
 
         //   bytes 8-11   audio codec fourcc
         // PCM fourcc needs extra parsing for every audio chunk, yet to implement
-        if( strncmp(hdr+8,"NONE", 4)){//&&strncmp(hdr+8,"VLB ", 4)){
+        if((demuxer->audio->id != -2) && strncmp(hdr+8,"NONE", 4)){//&&strncmp(hdr+8,"VLB ", 4)){
             sh_audio = new_sh_audio ( demuxer, 0 );
             demuxer->audio->sh = sh_audio;
             sh_audio->format=mmioFOURCC(hdr[8],hdr[9],hdr[10],hdr[11]);
             sh_audio->ds = demuxer->audio;
+            priv->a_format=mmioFOURCC(hdr[8],hdr[9],hdr[10],hdr[11]);
         }
-        priv->a_format=mmioFOURCC(hdr[8],hdr[9],hdr[10],hdr[11]);
 
-        // !!!!!!!!!!!!!!!!!!!!
-        // RemoveMe!!! This is just to avoid lot of bugreports!
-        // !!!!!!!!!!!!!!!!!!!!
-        if(priv->a_format==mmioFOURCC('V','L','B',' '))
-            mp_msg(MSGT_DEMUX,MSGL_WARN,"demux_nsv: VLB audio does not work yet. Expect problems.\n");
-
-        
         // store hdr fps 
         priv->fps=hdr[16];
             
-        if (strncmp(hdr+4,"NONE", 4)) {
+        if ((demuxer->video->id != -2) && strncmp(hdr+4,"NONE", 4)) {
             /* Create a new video stream header */
             sh_video = new_sh_video ( demuxer, 0 );
 
    
    
        
	- Previous message: [Mplayer-cvslog] 	CVS: main/libvo vo_gl.c, 1.44, 1.45 vo_gl2.c, 1.50,	1.51 vo_x11.c, 1.138, 1.139 vo_xmga.c, 1.87, 1.88 vo_xover.c,	1.7, 1.8 vo_xv.c, 1.152, 1.153 vo_xvidix.c, 1.67,	1.68 vo_xvmc.c, 1.9, 1.10
- Next message: [Mplayer-cvslog] CVS: main/DOCS/tech patches.txt,1.20,1.21
-  Messages sorted by: 
              [ date ]
              [ thread ]
              [ subject ]
              [ author ]
         
More information about the MPlayer-cvslog
mailing list