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/encode.h | |
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/encode.h')
-rw-r--r-- | libavcodec/encode.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/encode.h b/libavcodec/encode.h index dfaab7c976..e019cd7702 100644 --- a/libavcodec/encode.h +++ b/libavcodec/encode.h @@ -74,6 +74,11 @@ int ff_encode_encode_cb(AVCodecContext *avctx, AVPacket *avpkt, AVFrame *frame, int *got_packet); /** + * Add a CPB properties side data to an encoding context. + */ +AVCPBProperties *ff_encode_add_cpb_side_data(AVCodecContext *avctx); + +/** * Rescale from sample rate to AVCodecContext.time_base. */ static av_always_inline int64_t ff_samples_to_time_base(const AVCodecContext *avctx, |