Commit 27c2fb0f authored by Dale Curtis's avatar Dale Curtis Committed by Ronald S. Bultje

vp3: Assert on invalid filter_limit values.

Signed-off-by: 's avatarDale Curtis <dalecurtis@chromium.org>
Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
parent 76538d7a
...@@ -396,6 +396,7 @@ static void init_loop_filter(Vp3DecodeContext *s) ...@@ -396,6 +396,7 @@ static void init_loop_filter(Vp3DecodeContext *s)
int value; int value;
filter_limit = s->filter_limit_values[s->qps[0]]; filter_limit = s->filter_limit_values[s->qps[0]];
assert(filter_limit < 128);
/* set up the bounding values */ /* set up the bounding values */
memset(s->bounding_values_array, 0, 256 * sizeof(int)); memset(s->bounding_values_array, 0, 256 * sizeof(int));
......
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