Commit 3ecb1bbc authored by Gregory Maxwell's avatar Gregory Maxwell

Fixes #1701, c99ism in vcut. Patch by scottmc. Sorry for the horrible delay.

svn path=/trunk/vorbis-tools/; revision=19046
parent e7ced3b5
......@@ -233,6 +233,7 @@ static int open_output_file(vcut_state *s, char *filename)
* 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 @@ static int open_output_stream(vcut_state *s)
}
/* 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment