rv10: check size of s->mb_width * s->mb_height
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 3 Mar 2015 20:31:15 +0000 (21:31 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Sun, 8 Mar 2015 20:33:57 +0000 (20:33 +0000)
commitded9931d165544c342795a1b66e4777b6e7daeb0
tree94d0b251d477c96a6a5b6f5152d5e30b704c95ef
parentc17da32ba26d2c333bd9cd4afe38a1b36e3d6cba
rv10: check size of s->mb_width * s->mb_height

If it doesn't fit into 12 bits it triggers an assertion.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavcodec/mpegvideo.h
libavcodec/mpegvideo_enc.c
libavcodec/rv10enc.c