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

Michael Niedermayer michaelni at gmx.at
Tue Dec 31 18:37:33 CET 2013


On Tue, Dec 31, 2013 at 05:39:07PM +0100, Nicolas George wrote:
> 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.

1/0 is infinite
0/0 is undefined

these should be propagated sanely in calculations when using av_*_q()



[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 1
"Used only once"    - "Some unspecified defect prevented a second use"
"In good condition" - "Can be repaird by experienced expert"
"As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/be701d8b/attachment.asc>


More information about the ffmpeg-devel mailing list