avcodec/mpegvideo_enc: check that max_b_frames is not negative
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 29 Oct 2013 15:12:01 +0000 (16:12 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 29 Oct 2013 15:13:07 +0000 (16:13 +0100)
commitce55e667facbaf0e7aa8d543b114b28d22c2a250
treebb50729871b19b7f865ed9fbe0986b8cccde68cd
parent6103faaa51d2f46d6ccecaad9a089b4b42ff66ee
avcodec/mpegvideo_enc: check that max_b_frames is not negative

Fixes crash found by saste
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpegvideo_enc.c