fix qpfile frame idx
fix a bug when qpfile is not specified