diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-12-07 08:52:27 +0300 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-12-07 08:52:27 +0300 |
commit | b192e56461cfd83c5d3b7929b82b67395edbaa8e (patch) | |
tree | 201211ea3c656553c39bbd36e4a90a68e326488d /libavcodec/rv40.c | |
parent | ea61e33a7f8587c7f8fdb2524e933632f8274d60 (diff) |
Check decoded dimensions for validity
Originally committed as revision 11184 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv40.c')
-rw-r--r-- | libavcodec/rv40.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/rv40.c b/libavcodec/rv40.c index 642386c380..1a7451e1b9 100644 --- a/libavcodec/rv40.c +++ b/libavcodec/rv40.c @@ -119,6 +119,8 @@ static int rv40_parse_slice_header(RV34DecContext *r, GetBitContext *gb, SliceIn t = get_bits(gb, 13); /// ??? if(!si->type || !get_bits1(gb)) rv40_parse_picture_size(gb, &w, &h); + if(avcodec_check_dimensions(r->s.avctx, w, h) < 0) + return -1; si->width = w; si->height = h; mb_size = ((w + 15) >> 4) * ((h + 15) >> 4); |