avcodec/mpeg12enc: Move high resolution thread check to before initializing threads