diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-07-03 19:01:59 +0000 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-07-09 13:37:18 +0000 |
commit | d5cf5afabbf43f00283e70b12afbe1da030d85b6 (patch) | |
tree | f90930aaee18f386ddc35928d9fcf8186382efd0 /libavcodec/adx.h | |
parent | f6ee61fb05482c617f5deee29a190d8ff483b3d1 (diff) | |
download | ffmpeg-d5cf5afabbf43f00283e70b12afbe1da030d85b6.tar.gz |
adxdec: get rid of an avpriv function
The only thing the demuxer needs is the sample rate to set the timebase,
which can be simply read with AV_RB32.
Diffstat (limited to 'libavcodec/adx.h')
-rw-r--r-- | libavcodec/adx.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/adx.h b/libavcodec/adx.h index ff4c2d6f35..9328111012 100644 --- a/libavcodec/adx.h +++ b/libavcodec/adx.h @@ -74,7 +74,12 @@ void ff_adx_calculate_coeffs(int cutoff, int sample_rate, int bits, int *coeff); * @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); + +#if LIBAVCODEC_VERSION_MAJOR < 56 int avpriv_adx_decode_header(AVCodecContext *avctx, const uint8_t *buf, int bufsize, int *header_size, int *coeff); +#endif #endif /* AVCODEC_ADX_H */ |