]> git.sesse.net Git - ffmpeg/commitdiff
adx: rename ff_adx_decode_header() to avpriv_adx_decode_header()
authorJustin Ruggles <justin.ruggles@gmail.com>
Sat, 26 Nov 2011 22:00:00 +0000 (17:00 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sat, 26 Nov 2011 22:00:00 +0000 (17:00 -0500)
It is used by the ADX decoder, and therefore needs to be exported in order to
work with shared libs.

libavcodec/adx.c
libavcodec/adx.h
libavcodec/adx_parser.c
libavcodec/adxdec.c
libavformat/adxdec.c

index 9f03e930be7e6ddd488f43f76e87f30b87495359..aa90fd89c3dfba9f4c1cfd8f84f54ee4d62d5900 100644 (file)
@@ -34,8 +34,8 @@ void ff_adx_calculate_coeffs(int cutoff, int sample_rate, int bits, int *coeff)
     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;
 
index 93d547dcb22bc3a5d73bdbc2e76f6db4b4fe5493..da40eec92931fde3b04d33233d5a8709a4c4f7cc 100644 (file)
@@ -74,7 +74,7 @@ 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);
+int avpriv_adx_decode_header(AVCodecContext *avctx, const uint8_t *buf,
+                             int bufsize, int *header_size, int *coeff);
 
 #endif /* AVCODEC_ADX_H */
index 6de5ad48d12cb1d9850ff7d5a197c2622e467d53..ebcb1370e5fcd7d99ed4cd0d0c7268ca15ab089c 100644 (file)
@@ -53,8 +53,8 @@ static int adx_parse(AVCodecParserContext *s1,
         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;
         }
index ca96a904d6ea04e2c63e59e79b23d45d91ec3993..455806078166c88dc6cdbbe3e42d5ae39bf73589 100644 (file)
@@ -41,8 +41,9 @@ static av_cold int adx_decode_init(AVCodecContext *avctx)
     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;
     }
index 76b3728b1e7eb51fbf3350ece4fca0ac7b549be1..eff26982ea16702e71e63c12a3bd4e8243089b2f 100644 (file)
@@ -86,8 +86,9 @@ static int adx_read_header(AVFormatContext *s, AVFormatParameters *ap)
     }
     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;