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 19:21:41 +0000 (19:21 +0000)
commit8aee35acb1b40e51a4fc8d7f7c561088e25d6d2e
treed7b8143270b297a0be640a9b8987b5bfcc52edb8
parente818da77240146b36d6669b1c4e0565239dc55d3
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>
libavcodec/mpegvideo.h
libavcodec/mpegvideo_enc.c
libavcodec/rv10enc.c