summaryrefslogtreecommitdiff
path: root/libavcodec/adx.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-07-03 19:01:59 +0000
committerAnton Khirnov <anton@khirnov.net>2014-07-09 13:37:18 +0000
commitd5cf5afabbf43f00283e70b12afbe1da030d85b6 (patch)
treef90930aaee18f386ddc35928d9fcf8186382efd0 /libavcodec/adx.h
parentf6ee61fb05482c617f5deee29a190d8ff483b3d1 (diff)
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.h5
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 */