Commit 504bccf0 authored by Yaowu Xu's avatar Yaowu Xu Committed by Gerrit Code Review
Browse files

Merge "Changed to prevent decoder crash"

Showing with 1 addition and 1 deletion
...@@ -743,7 +743,7 @@ static void setup_frame_size_with_refs(VP9D_COMP *pbi, ...@@ -743,7 +743,7 @@ static void setup_frame_size_with_refs(VP9D_COMP *pbi,
if (!found) if (!found)
read_frame_size(rb, &width, &height); read_frame_size(rb, &width, &height);
if (!width || !height) if (width <= 0 || height <= 0)
vpx_internal_error(&cm->error, VPX_CODEC_CORRUPT_FRAME, vpx_internal_error(&cm->error, VPX_CODEC_CORRUPT_FRAME,
"Referenced frame with invalid size"); "Referenced frame with invalid size");
......
Supports Markdown
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