avcodec/mpegvideo_enc: Clip bits_per_raw_sample within valid range