[Mplayer-cvslog] CVS: main/libmpdemux pnm.c,1.2,1.3
Arpi of Ize
arpi at mplayerhq.hu
Thu Jan 9 19:01:17 CET 2003
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv27626
Modified Files:
pnm.c
Log Message:
check if prop_hdr==NULL insteda of sig11
Index: pnm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/pnm.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- pnm.c 27 Dec 2002 22:38:56 -0000 1.2
+++ pnm.c 9 Jan 2003 18:00:58 -0000 1.3
@@ -512,10 +512,11 @@
ptr+=chunk_size;
}
- /* set pre-buffer to a low number */
- /* prop_hdr[36]=0x01;
- prop_hdr[37]=0xd6; */
-
+ if (!prop_hdr) {
+ printf("input_pnm: error while parsing headers.\n");
+ return 0;
+ }
+
/* set data offset */
size--;
prop_hdr[42]=(size>>24)%0xff;
@@ -740,7 +741,7 @@
pnm_t *pnm_connect(int fd, char *path) {
pnm_t *p=malloc(sizeof(pnm_t));
- int need_response;
+ int need_response=0;
p->path=strdup(path);
p->s=fd;
More information about the MPlayer-cvslog
mailing list