Skip to content
Snippets Groups Projects
Commit 6e20554a authored by Laurent Aimar's avatar Laurent Aimar Committed by Michael Niedermayer
Browse files

eamad: avoid NULL derefence when missing the reference frame.

parent 6bfe0d4c
No related branches found
No related tags found
No related merge requests found
......@@ -205,7 +205,8 @@ static void decode_mb(MadContext *t, int inter)
for (j=0; j<6; j++) {
if (mv_map & (1<<j)) { // mv_x and mv_y are guarded by mv_map
int add = 2*decode_motion(&s->gb);
comp_block(t, s->mb_x, s->mb_y, j, mv_x, mv_y, add);
if (t->last_frame.data[0])
comp_block(t, s->mb_x, s->mb_y, j, mv_x, mv_y, add);
} else {
s->dsp.clear_block(t->block);
decode_block_intra(t, t->block);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment