Commit b9ffbd44 authored by diego's avatar diego

Check the return values of a few functions to avoid the corresponding warnings.

patch by Patrik Kullman, patrik yes nu


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17501 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7ec4f7dd
...@@ -56,8 +56,11 @@ static rwpipe *rwpipe_open( int argc, char *argv[] ) ...@@ -56,8 +56,11 @@ static rwpipe *rwpipe_open( int argc, char *argv[] )
int input[ 2 ]; int input[ 2 ];
int output[ 2 ]; int output[ 2 ];
pipe( input ); if (!pipe( input ))
pipe( output ); return NULL;
if (!pipe( output ))
return NULL;
this->pid = fork(); this->pid = fork();
...@@ -160,7 +163,9 @@ static int rwpipe_read_ppm_header( rwpipe *rw, int *width, int *height ) ...@@ -160,7 +163,9 @@ static int rwpipe_read_ppm_header( rwpipe *rw, int *width, int *height )
FILE *in = rwpipe_reader( rw ); FILE *in = rwpipe_reader( rw );
int max; int max;
fgets( line, 3, in ); if (!fgets( line, 3, in ))
return -1;
if ( !strncmp( line, "P6", 2 ) ) if ( !strncmp( line, "P6", 2 ) )
{ {
*width = rwpipe_read_number( rw ); *width = rwpipe_read_number( rw );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment