avcodec/mmvideo: Fix undefined behavior (left shift of negative value)