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>
Wed, 6 Jan 2016 23:41:21 +0000 (00:41 +0100)
commit13f266b50cc7554028d22480b7e4383968e64a63
tree21823071b85d64b987a443057b077418ad36243e
parent3ec5d8fe0ff11ceaca6326234af43a4486487be7
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>
libavcodec/mpegvideo_enc.c