[xiph-cvs] cvs commit: snatch snatchconvert.c

Monty xiphmont at xiph.org
Tue Feb 18 21:02:57 PST 2003



xiphmont    03/02/19 00:02:57

  Modified:    .        snatchconvert.c
  Log:
  Another stupid audio only fix

Revision  Changes    Path
1.17      +12 -1     snatch/snatchconvert.c

Index: snatchconvert.c
===================================================================
RCS file: /usr/local/cvsroot/snatch/snatchconvert.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- snatchconvert.c	18 Feb 2003 23:28:29 -0000	1.16
+++ snatchconvert.c	19 Feb 2003 05:02:57 -0000	1.17
@@ -1040,6 +1040,7 @@
     i++;
   }
 }
+
 void WriteWav(FILE *f,long channels,long rate,long bits){
   fprintf(f,"RIFF");
   PutNumLE(0x7fffffffUL,f,4);
@@ -1159,7 +1160,17 @@
       }
       return 0;
     }
-  }    
+  }else{
+    if(!begun){
+      if(process_audio)
+	WriteWav(out,audbuf_channels,audbuf_rate,16);
+      if(process_video==2)
+	WriteYuv2(out,vidbuf_width,vidbuf_height,ratecode);
+      if(process_video==1)
+	WriteYuv(out,vidbuf_width,vidbuf_height,ratecode);
+      begun=1;
+    }
+  }
 
   if(drain){
     int i;

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list