Unified · Split
| @@ -22,7 +22,7 @@ · 21 unmodified lines | ||
| 22 | 22 | |
| 23 | 23 | #include "dca.h" |
| 24 | 24 | |
| 25 | −const uint32_t ff_dca_sample_rates[16] = | |
| 25 | +const uint32_t avpriv_dca_sample_rates[16] = | |
| 26 | 26 | { |
| 27 | 27 | 0, 8000, 16000, 32000, 0, 0, 11025, 22050, 44100, 0, 0, |
| 28 | 28 | 12000, 24000, 48000, 96000, 192000 |
| @@ -36,6 +36,6 @@ · 35 unmodified lines | ||
| 36 | 36 | /** DCA-HD specific block starts with this marker. */ |
| 37 | 37 | #define DCA_HD_MARKER 0x64582025 |
| 38 | 38 | |
| 39 | −extern const uint32_t ff_dca_sample_rates[16]; | |
| 39 | +extern const uint32_t avpriv_dca_sample_rates[16]; | |
| 40 | 40 | |
| 41 | 41 | #endif /* AVCODEC_DCA_H */ |
| @@ -161,7 +161,7 @@ static int dca_parse_params(const uint8_t *buf, int buf_size, int *duration, · 160 unmodified lines | ||
| 161 | 161 | |
| 162 | 162 | skip_bits(&gb, 20); |
| 163 | 163 | sr_code = get_bits(&gb, 4); |
| 164 | − *sample_rate = ff_dca_sample_rates[sr_code]; | |
| 164 | + *sample_rate = avpriv_dca_sample_rates[sr_code]; | |
| 165 | 165 | if (*sample_rate == 0) |
| 166 | 166 | return AVERROR_INVALIDDATA; |
| 167 | 167 | |
| @@ -561,7 +561,7 @@ static int dca_parse_frame_header(DCAContext *s) · 560 unmodified lines | ||
| 561 | 561 | if (s->frame_size < 95) |
| 562 | 562 | return AVERROR_INVALIDDATA; |
| 563 | 563 | s->amode = get_bits(&s->gb, 6); |
| 564 | − s->sample_rate = ff_dca_sample_rates[get_bits(&s->gb, 4)]; | |
| 564 | + s->sample_rate = avpriv_dca_sample_rates[get_bits(&s->gb, 4)]; | |
| 565 | 565 | if (!s->sample_rate) |
| 566 | 566 | return AVERROR_INVALIDDATA; |
| 567 | 567 | s->bit_rate_index = get_bits(&s->gb, 5); |
| @@ -252,7 +252,7 @@ static int spdif_header_dts(AVFormatContext *s, AVPacket *pkt) · 251 unmodified lines | ||
| 252 | 252 | case DCA_MARKER_RAW_BE: |
| 253 | 253 | blocks = (AV_RB16(pkt->data + 4) >> 2) & 0x7f; |
| 254 | 254 | core_size = ((AV_RB24(pkt->data + 5) >> 4) & 0x3fff) + 1; |
| 255 | − sample_rate = ff_dca_sample_rates[(pkt->data[8] >> 2) & 0x0f]; | |
| 255 | + sample_rate = avpriv_dca_sample_rates[(pkt->data[8] >> 2) & 0x0f]; | |
| 256 | 256 | break; |
| 257 | 257 | case DCA_MARKER_RAW_LE: |
| 258 | 258 | blocks = (AV_RL16(pkt->data + 4) >> 2) & 0x7f; |