aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDale Curtis <dalecurtis@chromium.org>2012-04-12 16:07:10 -0700
committerRonald S. Bultje <rsbultje@gmail.com>2012-04-12 21:31:55 -0700
commit27c2fb0f721efb61f65017efa82c32c12de4287b (patch)
treef65b417a6394d0a79e9552cb7ca87f11db45dd6c
parent76538d7a78264eb0ce82f9f7f49f6fdbdcfc89ab (diff)
downloadffmpeg-27c2fb0f721efb61f65017efa82c32c12de4287b.tar.gz
vp3: Assert on invalid filter_limit values.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
-rw-r--r--libavcodec/vp3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index ade8354b2a..373f5e0b68 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -396,6 +396,7 @@ static void init_loop_filter(Vp3DecodeContext *s)
int value;
filter_limit = s->filter_limit_values[s->qps[0]];
+ assert(filter_limit < 128);
/* set up the bounding values */
memset(s->bounding_values_array, 0, 256 * sizeof(int));