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)
committerMartin Storsjö <martin@martin.st>
Tue, 17 Sep 2013 08:33:38 +0000 (11:33 +0300)
commitea78a348d86a3a733f6c1e0a65cfdd8283d924b9
tree8826e78590db67224faef044fd761687507ae13e
parentc39f7eba01cd656e8f0eed592f93d11814736650
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>
libavcodec/eacmv.c