On Fri, Jul 11, 2014 at 12:43 PM, Diego Biurrun <[email protected]> wrote:
> On Fri, Jul 11, 2014 at 11:10:08AM -0400, Vittorio Giovara wrote:
>> --- a/doc/filters.texi
>> +++ b/doc/filters.texi
>> @@ -1034,6 +1034,9 @@ crop=out_w=in_w-100:out_h=in_h-100:x=100:y=100
>> +
>> +# Make sure width and height are a multiple of 2 (rounding down)
>> +"crop=x=0:y=0:out_w=((in_w-1)/2)*2:out_h=((in_h-1)/2)*2"
>
> As was said on IRC already, this does not "make sure" that width and height
> are a multiple of 2.  It reduces both even and odd values to the next smaller
> even value.  I don't understand the scenario where this should be desirable.

Because of how lavf operates, this reduces odd values to even and
leaves even even.
The scenario is when you have to be sure that your video has sizes
multiple of 2 and do not want to performs checks before.

I can drop this if you wish, I just thought it would be something
useful to have around.
Cheers,
-- 
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to