aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libcodec2.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-10-26 10:58:51 -0300
committerJames Almer <jamrial@gmail.com>2020-10-28 11:55:53 -0300
commit3916af4d95835d74d347ca640c7b7ee17b38f529 (patch)
tree94cbfed7d654de7f7177d8244a6cf287700f0c89 /libavcodec/libcodec2.c
parentfec1b4738f351260b12cc88b79e95b39308190ba (diff)
downloadffmpeg-3916af4d95835d74d347ca640c7b7ee17b38f529.tar.gz
avcodec/codec2utils: remove avpriv prefix from inline functions
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/libcodec2.c')
-rw-r--r--libavcodec/libcodec2.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/libcodec2.c b/libavcodec/libcodec2.c
index 1d6bed0383..8421f5b261 100644
--- a/libavcodec/libcodec2.c
+++ b/libavcodec/libcodec2.c
@@ -34,7 +34,7 @@ typedef struct {
static const AVOption options[] = {
//not AV_OPT_FLAG_DECODING_PARAM since mode should come from the demuxer
//1300 (aka FreeDV 1600) is the most common mode on-the-air, default to it here as well
- AVPRIV_CODEC2_AVOPTIONS("codec2 mode", LibCodec2Context, 0, 4 /*CODEC2_MODE_1300*/, AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_ENCODING_PARAM),
+ CODEC2_AVOPTIONS("codec2 mode", LibCodec2Context, 0, 4 /*CODEC2_MODE_1300*/, AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_ENCODING_PARAM),
{ NULL },
};
@@ -55,7 +55,7 @@ static av_cold int libcodec2_init_common(AVCodecContext *avctx, int mode)
{
LibCodec2Context *c2 = avctx->priv_data;
//Grab mode name from options, unless it's some weird number.
- const char *modename = mode >= 0 && mode <= AVPRIV_CODEC2_MODE_MAX ? options[mode+1].name : "?";
+ const char *modename = mode >= 0 && mode <= CODEC2_MODE_MAX ? options[mode+1].name : "?";
c2->codec = codec2_create(mode);
if (!c2->codec) {
@@ -93,13 +93,13 @@ static av_cold int libcodec2_init_decoder(AVCodecContext *avctx)
avctx->sample_fmt = AV_SAMPLE_FMT_S16;
avctx->channel_layout = AV_CH_LAYOUT_MONO;
- if (avctx->extradata_size != AVPRIV_CODEC2_EXTRADATA_SIZE) {
+ if (avctx->extradata_size != CODEC2_EXTRADATA_SIZE) {
av_log(avctx, AV_LOG_ERROR, "must have exactly %i bytes of extradata (got %i)\n",
- AVPRIV_CODEC2_EXTRADATA_SIZE, avctx->extradata_size);
+ CODEC2_EXTRADATA_SIZE, avctx->extradata_size);
return AVERROR_INVALIDDATA;
}
- return libcodec2_init_common(avctx, avpriv_codec2_mode_from_extradata(avctx->extradata));
+ return libcodec2_init_common(avctx, codec2_mode_from_extradata(avctx->extradata));
}
static av_cold int libcodec2_init_encoder(AVCodecContext *avctx)
@@ -114,13 +114,13 @@ static av_cold int libcodec2_init_encoder(AVCodecContext *avctx)
return AVERROR(EINVAL);
}
- avctx->extradata = av_mallocz(AVPRIV_CODEC2_EXTRADATA_SIZE + AV_INPUT_BUFFER_PADDING_SIZE);
+ avctx->extradata = av_mallocz(CODEC2_EXTRADATA_SIZE + AV_INPUT_BUFFER_PADDING_SIZE);
if (!avctx->extradata) {
return AVERROR(ENOMEM);
}
- avctx->extradata_size = AVPRIV_CODEC2_EXTRADATA_SIZE;
- avpriv_codec2_make_extradata(avctx->extradata, c2->mode);
+ avctx->extradata_size = CODEC2_EXTRADATA_SIZE;
+ codec2_make_extradata(avctx->extradata, c2->mode);
return libcodec2_init_common(avctx, c2->mode);
}