[xiph-cvs] cvs commit: vorbis/examples encoder_example.c
Chris Wolf
cwolf at xiph.org
Sun Sep 16 18:33:08 PDT 2001
cwolf 01/09/16 18:33:08
Modified: examples encoder_example.c
Log:
Change fpin to stdin
Revision Changes Path
1.26 +5 -5 vorbis/examples/encoder_example.c
Index: encoder_example.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/examples/encoder_example.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- encoder_example.c 2001/09/17 01:06:18 1.25
+++ encoder_example.c 2001/09/17 01:33:07 1.26
@@ -11,7 +11,7 @@
********************************************************************
function: simple example encoder
- last mod: $Id: encoder_example.c,v 1.25 2001/09/17 01:06:18 cwolf Exp $
+ last mod: $Id: encoder_example.c,v 1.26 2001/09/17 01:33:07 cwolf Exp $
********************************************************************/
@@ -77,18 +77,18 @@
example, after all. */
readbuffer[0] = '\0';
- for (i=0, founddata=0; i<40 && ! feof(fpin) && ! ferror(fpin); i++)
+ for (i=0, founddata=0; i<40 && ! feof(stdin) && ! ferror(stdin); i++)
{
- fread(readbuffer,1,2,fpin);
+ fread(readbuffer,1,2,stdin);
if ( ! strncmp(readbuffer, "da", 2) )
{
founddata = 1;
- fread(readbuffer,1,6,fpin);
+ fread(readbuffer,1,6,stdin);
}
}
- if ( feof(fpin) || ferror(fpin) )
+ if ( feof(stdin) || ferror(stdin) )
{
(void)fprintf(stderr, "Error: Input WAV too short, or corrupt.\n");
return(1);
--- >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