coeff[1] = lrintf(-(c * c) * (1 << bits));
}
-int ff_adx_decode_header(AVCodecContext *avctx, const uint8_t *buf, int bufsize,
- int *header_size, int *coeff)
+int avpriv_adx_decode_header(AVCodecContext *avctx, const uint8_t *buf,
+ int bufsize, int *header_size, int *coeff)
{
int offset, cutoff;
* @param[out] coeff 2 LPC coefficients, can be NULL
* @return data offset or negative error code if header is invalid
*/
-int ff_adx_decode_header(AVCodecContext *avctx, const uint8_t *buf, int bufsize,
- int *header_size, int *coeff);
+int avpriv_adx_decode_header(AVCodecContext *avctx, const uint8_t *buf,
+ int bufsize, int *header_size, int *coeff);
#endif /* AVCODEC_ADX_H */
ff_combine_frame(pc, END_NOT_FOUND, &buf, &buf_size);
if (!s->header_size && pc->index >= MIN_HEADER_SIZE) {
- if (ret = ff_adx_decode_header(avctx, pc->buffer, pc->index,
- &s->header_size, NULL))
+ if (ret = avpriv_adx_decode_header(avctx, pc->buffer, pc->index,
+ &s->header_size, NULL))
return AVERROR_INVALIDDATA;
s->block_size = BLOCK_SIZE * avctx->channels;
}
if (avctx->extradata_size < 24)
return AVERROR_INVALIDDATA;
- if ((ret = ff_adx_decode_header(avctx, avctx->extradata, avctx->extradata_size,
- &header_size, c->coeff)) < 0) {
+ if ((ret = avpriv_adx_decode_header(avctx, avctx->extradata,
+ avctx->extradata_size, &header_size,
+ c->coeff)) < 0) {
av_log(avctx, AV_LOG_ERROR, "error parsing ADX header\n");
return AVERROR_INVALIDDATA;
}
}
avctx->extradata_size = c->header_size;
- ret = ff_adx_decode_header(avctx, avctx->extradata, avctx->extradata_size,
- &c->header_size, NULL);
+ ret = avpriv_adx_decode_header(avctx, avctx->extradata,
+ avctx->extradata_size, &c->header_size,
+ NULL);
if (ret)
return ret;