avcodec/utils: Align dimensions by at least their chroma sub-sampling factors.
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 29 Oct 2014 13:15:29 +0000 (14:15 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 29 Oct 2014 13:16:54 +0000 (14:16 +0100)
commitdf74811cd53e45fcbbd3b77a1c42416816687c5c
treee66984467fd85d2f9d2b5c4c5c5d23ca6f6c1dfa
parent0c42f47e383fc8e1e351e7d256803ffd2b2837d1
avcodec/utils: Align dimensions by at least their chroma sub-sampling factors.

Fixes: out of array accesses
Fixes: asan_heap-oob_112c6b3_13_012.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utils.c