[xiph-cvs] cvs commit: theora/examples encoder_example.c
Ralph Giles
giles at xiph.org
Mon May 19 12:30:22 PDT 2003
giles 03/05/19 15:30:22
Modified: examples encoder_example.c
Log:
Close the output file if it's not stdout.
Revision Changes Path
1.11 +3 -1 theora/examples/encoder_example.c
Index: encoder_example.c
===================================================================
RCS file: /usr/local/cvsroot/theora/examples/encoder_example.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- encoder_example.c 19 May 2003 18:51:06 -0000 1.10
+++ encoder_example.c 19 May 2003 19:30:22 -0000 1.11
@@ -12,7 +12,7 @@
function: example encoder application; makes an Ogg Theora/Vorbis
file from YUV4MPEG2 and WAV input
- last mod: $Id: encoder_example.c,v 1.10 2003/05/19 18:51:06 giles Exp $
+ last mod: $Id: encoder_example.c,v 1.11 2003/05/19 19:30:22 giles Exp $
********************************************************************/
@@ -715,6 +715,8 @@
ogg_stream_clear(&to);
theora_clear(&td);
}
+
+ if(outfile && outfile!=stdout)fclose(outfile);
fprintf(stderr,"\r \ndone.\n\n");
<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