enc_qsv: move input surface setup outside the encode loop.

It only needs to be done once.