AVStream.nb_frames

< number of frames in this stream if known or 0

struct AVStream
int64_t nb_frames;

Meta