eacmv: Make sure a reference frame exists before referencing it
authorMartin Storsjö <martin@martin.st>
Mon, 16 Sep 2013 18:07:30 +0000 (21:07 +0300)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 4 Oct 2013 01:26:26 +0000 (03:26 +0200)
commit2e12af4587613dd5b2c3431e5c8194d73b03434f
treeb03857c2aa364c80eecda899676275ae24b8cdd1
parentc8c93795e4afd04c2c5b74e29e8dec29b6a76b81
eacmv: Make sure a reference frame exists before referencing it

This is similar to an existing check for the second-last frame
from 062421e3.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit ea78a348d86a3a733f6c1e0a65cfdd8283d924b9)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Conflicts:
libavcodec/eacmv.c
libavcodec/eacmv.c