[FFmpeg-devel] [PATCH] lavu/rational: add syntactic sugar.

Nicolas George george at nsup.org
Tue Dec 31 17:39:07 CET 2013


Le primidi 11 nivôse, an CCXXII, Clément Bœsch a écrit :
> I would switch those two. "undef" sounds like "all fields are 0 so it's
> just not set/defined". 1/0 sounds like an explicit division by zero, so
> invalid on purpose.

I have no objection, depending on what people prefer.

My reasoning is this: 0/0 is when the structure is left uninitialized while
0/1 is used in several places to explicitly mark a value that was not
defined.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/9d74476f/attachment.asc>


More information about the ffmpeg-devel mailing list