Commit 339f7172 authored by conrad's avatar conrad
Browse files

oggz-comment: fix crash when writing output to stdout, eg. by running

"oggz-comment file.ogv -a". Reported by j^


git-svn-id: http://svn.annodex.net/liboggz/trunk@3497 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 7ee331cd
......@@ -272,7 +272,6 @@ edit_comments (OCData * ocdata, char * outfilename)
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 @@ main (int argc, char ** argv)
long n;
int i = 1;
ot_init ();
progname = argv[0];
if (argc < 3) {
......
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