Le quintidi 5 nivôse, an CCXXV, Michael Niedermayer a écrit :
> Why do these functions exist twice ?
> the API would be simpler with just one set

You mean the _samples / _frame versions, or the normal / _sure versions?

The _samples / _frame case seemed easier than distinguishing using
special values of the arguments.

The normal / _sure are useful to express that availability check has
already done.

That way, if the check is or becomes invalid (maybe because someone adds
a special case between the test and the use) it is detected by an assert
failure during FATE rather than become an ignored error code. I caught
quite a few mistakes that way.

But of course, it can be discussed.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to