[FFmpeg-devel] [PATCH] libavformat: Add H264 API test

Derek Buitenhuis derek.buitenhuis at gmail.com
Mon Jun 22 14:40:11 CEST 2015


On 6/22/2015 1:32 PM, Vittorio Giovara wrote:
> video_decode_example can return -1 on error, and this is lost, so
> you'd better do "return video_decode_example(argv[1]);" to return the
> value to the caller. Also sometimes you exit(1) and sometimes you
> return -1, maybe you could go with only one of them.

You shouldn't return -1 as a process exit code. This is a reserved value
for proc return codes in POSIX.

- Derek


More information about the ffmpeg-devel mailing list