[xiph-cvs] cvs commit: vorbis-tools/oggenc oggenc.c

Michael Smith msmith at xiph.org
Sat Sep 29 17:01:54 PDT 2001



msmith      01/09/29 17:01:54

  Modified:    oggenc   oggenc.c
  Log:
  Fix same bug as was recently fixed in oggdrop in oggenc, need to close input
  file in one circumstance which wasn't being caught. Oops.

Revision  Changes    Path
1.31      +2 -0      vorbis-tools/oggenc/oggenc.c

Index: oggenc.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/oggenc.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- oggenc.c	2001/09/28 09:51:36	1.30
+++ oggenc.c	2001/09/30 00:01:53	1.31
@@ -192,6 +192,8 @@
                 if(!foundformat)
                 {
                         fprintf(stderr, "ERROR: Input file \"%s\" is not a supported format\n", infiles[i]);
+    		if(closein)
+				fclose(in);
                         errors++;
                         continue;
                 }

--- >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