utvideoenc: use ff_generate_len()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 22 Aug 2012 02:02:38 +0000 (04:02 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 22 Aug 2012 17:38:24 +0000 (19:38 +0200)
commitf92f4935acd7d974adfd1deebdf1bb06cbe107ca
tree96a3a98a9e516e497e4113c796af115f21317fe6
parent52820bc578c3ff099e012b7049672175aede9d18
utvideoenc: use ff_generate_len()

19% faster
smaller files
this may also fix possible integer overflows due to previous 32bit useage

Tested with libutvideo and our utvideo decoder, this patch does not change
decoder output in the test

Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 files changed:
libavcodec/utvideoenc.c
tests/ref/fate/utvideoenc_rgb_left
tests/ref/fate/utvideoenc_rgb_median
tests/ref/fate/utvideoenc_rgb_none
tests/ref/fate/utvideoenc_rgba_left
tests/ref/fate/utvideoenc_rgba_median
tests/ref/fate/utvideoenc_rgba_none
tests/ref/fate/utvideoenc_yuv420_left
tests/ref/fate/utvideoenc_yuv420_median
tests/ref/fate/utvideoenc_yuv420_none
tests/ref/fate/utvideoenc_yuv422_left
tests/ref/fate/utvideoenc_yuv422_median
tests/ref/fate/utvideoenc_yuv422_none