[xiph-commits] r3497 - liboggz/trunk/src/tools

conrad at svn.annodex.net conrad at svn.annodex.net
Tue Feb 26 00:29:11 PST 2008


Author: conrad
Date: 2008-02-26 00:29:10 -0800 (Tue, 26 Feb 2008)
New Revision: 3497

Modified:
   liboggz/trunk/src/tools/oggz-comment.c
Log:
oggz-comment: fix crash when writing output to stdout, eg. by running
"oggz-comment file.ogv -a". Reported by j^


Modified: liboggz/trunk/src/tools/oggz-comment.c
===================================================================
--- liboggz/trunk/src/tools/oggz-comment.c	2008-02-26 07:40:51 UTC (rev 3496)
+++ liboggz/trunk/src/tools/oggz-comment.c	2008-02-26 08:29:10 UTC (rev 3497)
@@ -272,7 +272,6 @@
   if ((ocdata->writer = oggz_new (OGGZ_WRITE)) == NULL) {
     printf ("Unable to create new writer\n");
   }
-  ocdata->outfile = fopen (outfilename, "w");
 
   /* Set a page reader to process bos pages */
   oggz_set_read_page (ocdata->reader, -1, read_bos, ocdata);
@@ -373,6 +372,8 @@
   long n;
   int i = 1;
 
+  ot_init ();
+
   progname = argv[0];
 
   if (argc < 3) {



More information about the commits mailing list