[xiph-cvs] cvs commit: w3d tarkin_dec.c
Holger Waechtler
holger at xiph.org
Tue Nov 20 03:49:00 PST 2001
holger 01/11/20 03:49:00
Modified: . tarkin_dec.c
Log:
removed an unused variable and a fixed an 'invalid pointer type' warning
Revision Changes Path
1.6 +1 -2 w3d/tarkin_dec.c
Index: tarkin_dec.c
===================================================================
RCS file: /usr/local/cvsroot/w3d/tarkin_dec.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- tarkin_dec.c 2001/11/10 04:12:52 1.5
+++ tarkin_dec.c 2001/11/20 11:48:59 1.6
@@ -18,7 +18,6 @@
uint8_t *rgb;
int fd;
TarkinStream *tarkin_stream;
- uint32_t n_layers;
int nread;
int nheader = 0;
ogg_sync_state oy;
@@ -71,7 +70,7 @@
} else {
tarkin_synthesis_packetin(tarkin_stream, &op);
while(tarkin_synthesis_frameout(tarkin_stream, &rgb, 0, &date)==0){
- layer = tarkin_stream->layer;
+ layer = &tarkin_stream->layer->desc;
snprintf(ofname, 11, layer->format == TARKIN_GRAYSCALE ? "out%03d.pgm" : "out%03d.ppm", frame);
printf ("write '%s' %dx%d\n", ofname, layer->width, layer->height);
write_pnm (ofname, rgb, layer->width, layer->height);
--- >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