[FFmpeg-devel] [PATCH 3/3] Make opt_default(), return an error code rather than exit from the program.

Michael Niedermayer michaelni
Sun Nov 7 00:38:48 CET 2010


On Sat, Nov 06, 2010 at 03:02:57PM +0100, Stefano Sabatini wrote:
> This allows the program to nicely handle the error, for example
> providing detailed error explanation to the user or cleaning up the
> allocated resources of the program.

there is plenty of code that does not check its return value
and i dont think adding checks everywhere is a good idea

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101107/7281d150/attachment.pgp>



More information about the ffmpeg-devel mailing list