ref: 8371c897dc5c48e92077b8eb291a04cae3d889c0
parent: 8dfeece87881bd18ffcc96e545719d84436eb5d8
parent: f480c1256d21c5dafcfb124bc6bdff36dc0aef41
author: Adrian Grange <agrange@google.com>
date: Fri May 15 13:36:41 EDT 2015
Merge "Fix illegal memory access when stream starts w/ invisible frame."
--- a/vp9/vp9_dx_iface.c
+++ b/vp9/vp9_dx_iface.c
@@ -937,7 +937,8 @@
frame_worker_data->pbi->common.buffer_pool->frame_bufs;
if (frame_worker_data->pbi->common.frame_to_show == NULL)
return VPX_CODEC_ERROR;
- *corrupted = frame_bufs[ctx->last_show_frame].buf.corrupted;
+ if (ctx->last_show_frame >= 0)
+ *corrupted = frame_bufs[ctx->last_show_frame].buf.corrupted;
return VPX_CODEC_OK;
} else {
return VPX_CODEC_ERROR;
--
⑨