AVStream.nb_frames

< number of frames in this stream if known or 0

struct AVStream
long nb_frames;

Meta