dpx: include offset in the total_size calculation