You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
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>
This commit is contained in:
@@ -1273,7 +1273,7 @@ static av_cold int vpx_init(AVCodecContext *avctx,
|
||||
ctx->rawimg.bit_depth = enccfg.g_bit_depth;
|
||||
#endif
|
||||
|
||||
cpb_props = ff_add_cpb_side_data(avctx);
|
||||
cpb_props = ff_encode_add_cpb_side_data(avctx);
|
||||
if (!cpb_props)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user