4xm: do not overread the source buffer in decode_p_block
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 9 Jun 2013 16:27:05 +0000 (18:27 +0200)
committerReinhard Tartler <siretart@tauware.de>
Sun, 30 Jun 2013 14:39:08 +0000 (16:39 +0200)
commit0c943d1cdd18d0aea4ebc15f18a1152f7a77e5c9
treed5adc3ce18c0fce910b9d4b15db0ac730fe45b5c
parent6a4f1e784e39c82194a485995906d9917d4619b2
4xm: do not overread the source buffer in decode_p_block

Check for out of picture macroblocks before calling mcdc.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit 94aefb1932be882fd93f66cf790ceb19ff575c19)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Conflicts:
libavcodec/4xm.c
libavcodec/4xm.c