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>
Sun, 2 Nov 2014 01:20:10 +0000 (02:20 +0100)
commitbde9e859b3c7ebb0f76437dd6457a41ac8904740
treeef3f3c12f9de01faa7300d8549237a4718e255a1
parent85cac770bdb0ed871ce5715452f416d16d36d7e8
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>
(cherry picked from commit df74811cd53e45fcbbd3b77a1c42416816687c5c)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utils.c