flvenc: use int64_t to store offsets