OSDN Git Service

avcodec/rv10: check size of s->mb_width * s->mb_height
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Mon, 2 Mar 2015 19:27:26 +0000 (20:27 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Mar 2015 11:36:36 +0000 (12:36 +0100)
commit2578a546183da09d49d5bba8ab5e982dece1dede
treeca0fd077f6b2e48688dcae1e219f289189147fd8
parent618021ea58cda5ce294efa53ce5a69ce27420ef8
avcodec/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: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpegvideo.h
libavcodec/mpegvideo_enc.c
libavcodec/rv10enc.c