Fix crash when mkvparser returns a NULL BlockEntry.

BUG=https://bugs.chromium.org/p/webm/issues/detail?id=1090

Change-Id: I64b7b19581f15d53048e3026c3f8946e344fbe26
This commit is contained in:
Tom Finegan 2016-04-04 11:49:42 -07:00
parent 71cf9fac83
commit 79d5aac74f

View File

@ -164,7 +164,7 @@ int webm_read_frame(struct WebmInputContext *webm_ctx,
}
get_new_block = true;
}
if (status) {
if (status || block_entry == NULL) {
return -1;
}
if (get_new_block) {