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 15:00:31 +0000 (16:00 +0100)
commit3dd0d43d8cf7970a141c8f76fa8ec3d81d65be82
tree79efaf3cffa8924ea059db07f660a80dee84e39e
parent2f6d3459d9085472ddab243eaa1bf47aed3f130f
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