On 10/20/2021 7:30 PM, Michael Niedermayer wrote: > Does something ensure time_scale * 8 fits in int ? if not this needs a cast to *int64_t You're right, this could break on systems with 32-bit int. v2 sent. - erek