vp56: Check for missing reference frame data
Signed-off-by: Janne Grunau <janne-libav@jannau.net> (cherry picked from commit 0ec6d6e9b682318b5b5b5457e09fbf3c4ca41335) Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
987f5dc55e
commit
efe3fb13a7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user