avcodec/mpegvideo_enc: fix mixed declarations and code warning