avcodec/mpegvideo_enc: Clip bits_per_raw_sample within valid range
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 6 Jan 2016 23:22:56 +0000 (00:22 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 15 Jan 2016 16:23:54 +0000 (17:23 +0100)
commit81bac54ab3cdf1cac32bc0ee84956077c5562589
treeba6c1096f91e6b49ff9e85adf4db22f85a5183a6
parent482ca8241d7758ff81c51e1f54fa4bb1286269e4
avcodec/mpegvideo_enc: Clip bits_per_raw_sample within valid range

Fixes out of array read
Fixes: test_case-mdc.264 (b47be15a120979f5a1a945c938cbef33)

Found-by: Tyson Smith <twsmith@mozilla.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 13f266b50cc7554028d22480b7e4383968e64a63)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpegvideo_enc.c