| Index: source/libvpx/vp9/decoder/vp9_decoder.c | 
| =================================================================== | 
| --- source/libvpx/vp9/decoder/vp9_decoder.c	(revision 278870) | 
| +++ source/libvpx/vp9/decoder/vp9_decoder.c	(working copy) | 
| @@ -260,10 +260,10 @@ | 
| // TODO(jkoleszar): Error concealment is undefined and non-normative | 
| // at this point, but if it becomes so, [0] may not always be the correct | 
| // thing to do here. | 
| -    if (cm->frame_refs[0].idx != INT_MAX) | 
| +    if (cm->frame_refs[0].idx != INT_MAX && cm->frame_refs[0].buf != NULL) | 
| cm->frame_refs[0].buf->corrupted = 1; | 
|  | 
| -    if (cm->frame_bufs[cm->new_fb_idx].ref_count > 0) | 
| +    if (cm->new_fb_idx > 0 && cm->frame_bufs[cm->new_fb_idx].ref_count > 0) | 
| cm->frame_bufs[cm->new_fb_idx].ref_count--; | 
|  | 
| return -1; | 
|  |