fixed audio/video sync when re-encoding a movie