AVPacket.pos

< byte position in stream, -1 if unknown

struct AVPacket
int64_t pos;

Meta