avcodec/vqavideo: Limit resolution