[FFmpeg-devel] [PATCH 10/10] Document how av_cmp_q() deal when one of the values to be compared is 0/0.

Stefano Sabatini stefano.sabatini-lala
Mon Oct 4 11:43:16 CEST 2010


On date Monday 2010-10-04 11:24:25 +0200, Stefano Sabatini encoded:
> On date Monday 2010-10-04 01:54:21 +0200, Michael Niedermayer encoded:
[...]
> OK, and patch updated with a test. Result is:
> 
> Testing av_cmp_q()
> 1/0 cmp 1/1 -> 1
> -1/0 cmp 1/1 -> -1
> 1/0 cmp -1/1 -> 1
> 1/0 cmp 1/0 -> 0
> 2/0 cmp 1/0 -> 0
> 1/0 cmp -1/0 -> 1
> -1/0 cmp 1/0 -> -1
> -1/0 cmp -1/0 -> 0
> 0/0 cmp 1/1 -> -2147483648
> 0/0 cmp -1/1 -> -2147483648
> 0/0 cmp 1/0 -> -2147483648
> 1/0 cmp 0/0 -> -2147483648
> 0/0 cmp -1/0 -> -2147483648
> 0/0 cmp 0/0 -> -2147483648
>
> 
> Tell if you want to keep the test or apply the test as a separate
> patch or apply the patch yourself (but in that case remember to bump
> lavu micro version).

A more compact and complete version of the test in attachment. If
requested I can eventually check for the returned values and return as
output the error count.

Regards.
-- 
FFmpeg = Fierce & Fascinating Multipurpose Powered EnGine



More information about the ffmpeg-devel mailing list