[xiph-commits] r19046 - trunk/vorbis-tools/vcut

gmaxwell at svn.xiph.org gmaxwell at svn.xiph.org
Tue Dec 10 08:44:31 PST 2013


Author: gmaxwell
Date: 2013-12-10 08:44:30 -0800 (Tue, 10 Dec 2013)
New Revision: 19046

Modified:
   trunk/vorbis-tools/vcut/vcut.c
Log:
Fixes #1701, c99ism in vcut. Patch by scottmc. Sorry for the horrible delay.

Modified: trunk/vorbis-tools/vcut/vcut.c
===================================================================
--- trunk/vorbis-tools/vcut/vcut.c	2013-12-06 06:00:01 UTC (rev 19045)
+++ trunk/vorbis-tools/vcut/vcut.c	2013-12-10 16:44:30 UTC (rev 19046)
@@ -233,6 +233,7 @@
  * Returns 0 for success, or -1 on failure. */
 static int open_output_stream(vcut_state *s)
 {
+        int rv;
 	if(!s->out && !s->drop_output)
 	{
 		if(open_output_file(s, s->output_filename)!=0)
@@ -240,7 +241,7 @@
 	}
 
 	/* ogg_stream_init should only fail if stream_out is null */
-	int rv = ogg_stream_init(&s->stream_out, ++s->serial_out);
+	rv = ogg_stream_init(&s->stream_out, ++s->serial_out);
 	assert(rv == 0);
 
 	s->output_stream_open = 1;



More information about the commits mailing list