summaryrefslogtreecommitdiff
path: root/libavcodec/libx264.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-09-04 09:39:07 -0300
committerJames Almer <jamrial@gmail.com>2023-09-06 10:27:45 -0300
commit0231df505dc70ac435f2b437d1995ebabd70a66a (patch)
tree7c93bb70f0122010e6673dddaa0ae7c5f5b4ad5e /libavcodec/libx264.c
parent3744ada3b8fddce4ee7915152a2b066e690c7370 (diff)
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.c2
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;