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/libx264.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/libx264.c')
-rw-r--r-- | libavcodec/libx264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index cc5e1ba5b1..fb3186ca8d 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -1230,7 +1230,7 @@ FF_ENABLE_DEPRECATION_WARNINGS avctx->extradata_size = p - avctx->extradata; } - cpb_props = ff_add_cpb_side_data(avctx); + cpb_props = ff_encode_add_cpb_side_data(avctx); if (!cpb_props) return AVERROR(ENOMEM); cpb_props->buffer_size = x4->params.rc.i_vbv_buffer_size * 1000; |