Commit 61a70397 authored by Jean-Paul Saman's avatar Jean-Paul Saman

examples/decode_mpeg.c: Fix (CID 17259)

Check i_fd to have a valid value.
parent ca127bb7
......@@ -665,6 +665,13 @@ int main(int i_argc, char* pa_argv[])
goto error;
}
if( i_fd < 0 )
{
fprintf( stderr, "no input selected\n" );
usage( pa_argv[0] );
goto error;
}
p_stream = (ts_stream_t *) malloc( sizeof(ts_stream_t) );
if( !p_stream )
goto out_of_memory;
......
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