AVCodecContext.rc_max_rate

maximum bitrate - encoding: Set by user. - decoding: Set by user, may be overwritten by libavcodec.

struct AVCodecContext
long rc_max_rate;

Meta