AVPacket.duration

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

struct AVPacket
long duration;

Meta