AVCodecContext.coded_width

Bitstream width / height, may be different from width/height e.g. when the decoded frame is cropped before being output or lowres is enabled. - encoding: unused - decoding: May be set by the user before opening the decoder if known e.g. from the container. During decoding, the decoder may overwrite those values as required.

struct AVCodecContext
int coded_width;

Meta