aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@videolan.org>2011-09-21 20:46:30 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-22 01:19:15 +0200
commita5a02ea3f2bb4e89d9ee0e381c938bd83e5c369d (patch)
treeca15578f03b614b162e3c4a9dea2c682b8fae07f
parent69b6248327a042155396177eaff009b65bc8fcc8 (diff)
downloadffmpeg-a5a02ea3f2bb4e89d9ee0e381c938bd83e5c369d.tar.gz
Check for missing reference in vp5/6 decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 6a0e78929aa7d6b2c6b598c1589fb0e48fccb132)
-rw-r--r--libavcodec/vp56.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vp56.c b/libavcodec/vp56.c
index ad451c251f..cf891763f6 100644
--- a/libavcodec/vp56.c
+++ b/libavcodec/vp56.c
@@ -399,6 +399,8 @@ static void vp56_decode_mb(VP56Context *s, int row, int col, int is_alpha)
frame_current = s->framep[VP56_FRAME_CURRENT];
frame_ref = s->framep[ref_frame];
+ if (mb_type != VP56_MB_INTRA && !frame_ref->data[0])
+ return;
ab = 6*is_alpha;
b_max = 6 - 2*is_alpha;