patch by Patrik Kullman, patrik yes nu
Originally committed as revision 17501 to svn://svn.ffmpeg.org/ffmpeg/trunk
int input[ 2 ];
int output[ 2 ];
- pipe( input );
- pipe( output );
+ if (!pipe( input ))
+ return NULL;
+
+ if (!pipe( output ))
+ return NULL;
this->pid = fork();
FILE *in = rwpipe_reader( rw );
int max;
- fgets( line, 3, in );
+ if (!fgets( line, 3, in ))
+ return -1;
+
if ( !strncmp( line, "P6", 2 ) )
{
*width = rwpipe_read_number( rw );