[FFmpeg-devel] [PATCH] vp3: Assert on invalid filter_limit values.

dalecurtis at chromium.org dalecurtis at chromium.org
Fri Apr 13 01:07:10 CEST 2012


From: Dale Curtis <dalecurtis at chromium.org>

Signed-off-by: Dale Curtis <dalecurtis at chromium.org>
---
 libavcodec/vp3.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index e94264e..e146593 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]];
+    av_assert0(filter_limit < 128);
 
     /* set up the bounding values */
     memset(s->bounding_values_array, 0, 256 * sizeof(int));
-- 
1.7.7.3



More information about the ffmpeg-devel mailing list