enc_qsv: save and restore frame durations properly.