mpegvideo: Move obmc in a separate function