mmvideo: check frame dimensions
authorAnton Khirnov <anton@khirnov.net>
Sun, 14 Dec 2014 20:01:59 +0000 (21:01 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 30 Dec 2014 14:38:21 +0000 (15:38 +0100)
commit823a9177a3ea14bbce2cb6ae97435918953e2d3b
tree2477a984aedac323dfbffded53104cc242eedde9
parent01c83f4cb197ba9e2317ea4e4ade4cf46e138113
mmvideo: check frame dimensions

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

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

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