eamad: allocate a dummy reference frame when the real one is missing
authorAnton Khirnov <anton@khirnov.net>
Wed, 13 Feb 2013 20:04:42 +0000 (21:04 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 9 Mar 2013 18:05:42 +0000 (19:05 +0100)
commit0cb3cab3431276c9339df91bfdbf30510d784a6c
treed05d300d80d7137fd34fcbd09151c5ebb94b4585
parentb77d9cbbd5050eda75030c8926241af3dbe1a8df
eamad: allocate a dummy reference frame when the real one is missing

Fixes invalid reads when the first frame is not an I-frame.

CC:libav-stable@libav.org
(cherry picked from commit 7b89cd20d844cbe763ca34e63e99d110043cf241)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/eamad.c