Commit 79d5aac7 authored by Tom Finegan's avatar Tom Finegan

Fix crash when mkvparser returns a NULL BlockEntry.

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

Change-Id: I64b7b19581f15d53048e3026c3f8946e344fbe26
parent 71cf9fac
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment