avcodec/mpegaudiodec_template: make shift unsigned to avoid undefined behavior

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/hevc: Fix undefined shifts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>