diff options
author | James Almer <jamrial@gmail.com> | 2023-09-04 09:39:07 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-09-06 10:27:45 -0300 |
commit | 0231df505dc70ac435f2b437d1995ebabd70a66a (patch) | |
tree | 7c93bb70f0122010e6673dddaa0ae7c5f5b4ad5e /libavcodec/libopenh264enc.c | |
parent | 3744ada3b8fddce4ee7915152a2b066e690c7370 (diff) | |
download | ffmpeg-0231df505dc70ac435f2b437d1995ebabd70a66a.tar.gz |
avcodec/utils: move ff_add_cpb_side_data() to encoder code
It's only used by encoders, so move it to prevent wrong usage.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/libopenh264enc.c')
-rw-r--r-- | libavcodec/libopenh264enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c index 5b59af6f94..433accba22 100644 --- a/libavcodec/libopenh264enc.c +++ b/libavcodec/libopenh264enc.c @@ -353,7 +353,7 @@ FF_ENABLE_DEPRECATION_WARNINGS memcpy(avctx->extradata, fbi.sLayerInfo[0].pBsBuf, size); } - props = ff_add_cpb_side_data(avctx); + props = ff_encode_add_cpb_side_data(avctx); if (!props) return AVERROR(ENOMEM); props->max_bitrate = param.iMaxBitrate; |