jvdec: check frame dimensions
authorAnton Khirnov <anton@khirnov.net>
Sun, 14 Dec 2014 20:01:59 +0000 (21:01 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Dec 2014 14:52:22 +0000 (15:52 +0100)
commit396195c50591a655c6c444925e813ae6a45cb3cc
tree3dd599a8ccdca74f8985d448ac1dc470772cfef0
parente2324b5b371c613faed33be52b6908da540557d1
jvdec: check frame dimensions

The frame size must be set by the caller and each dimension must be a
multiple of 8.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
See: 105654e376a736d243aef4a1d121abebce912e6b
These should be redundant, but are backported for saftey anyway
(cherry picked from commit e012cb8dea7969c7b3927dbf846ef2742cd4a7ab)

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