AVPacket.duration

Duration of this packet in AVStream->time_base units, 0 if unknown. Equals next_pts - this_pts in presentation order.

struct AVPacket
int64_t duration;

Meta