avcodec/mpegaudioenc_template: Fix integer overflow