AVCodecParserContext.duration

Duration of the current frame. For audio, this is in units of 1 / AVCodecContext.sample_rate. For all other types, this is in units of AVCodecContext.time_base.

struct AVCodecParserContext
int duration;

Meta