AVCodecContext.height

picture width / height. - encoding: MUST be set by user. - decoding: May be set by the user before opening the decoder if known e.g. from the container. Some decoders will require the dimensions to be set by the caller. During decoding, the decoder may overwrite those values as required.

struct AVCodecContext
int height;

Meta