History

lavc: use avpriv_ prefix for ff_aac_parse_header().

It's used in lavf.

Anton Khirnov committed 15 years ago

Commit 73ae27e1 parent 8d74bf17 files · +7 −7Browse files

Unified · Split

7 files
  1. libavcodec/aac_adtstoasc_bsf.c +1 −1
  2. libavcodec/aac_parser.c +1 −1
  3. libavcodec/aacadtsdec.c +1 −1
  4. libavcodec/aacadtsdec.h +1 −1
  5. libavcodec/aacdec.c +1 −1
  6. libavformat/spdifdec.c +1 −1
  7. libavformat/spdifenc.c +1 −1
libavcodec/aac_adtstoasc_bsf.c+1−1
@@ -55,7 +55,7 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc, · 54 unmodified lines
5555 if (show_bits(&gb, 12) != 0xfff)
5656 return 0;
5757
58− if (ff_aac_parse_header(&gb, &hdr) < 0) {
58+ if (avpriv_aac_parse_header(&gb, &hdr) < 0) {
5959 av_log(avctx, AV_LOG_ERROR, "Error parsing ADTS frame header!\n");
6060 return -1;
6161 }
libavcodec/aac_parser.c+1−1
@@ -40,7 +40,7 @@ static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info, · 39 unmodified lines
4040 tmp.u64 = av_be2ne64(state);
4141 init_get_bits(&bits, tmp.u8+8-AAC_ADTS_HEADER_SIZE, AAC_ADTS_HEADER_SIZE * 8);
4242
43− if ((size = ff_aac_parse_header(&bits, &hdr)) < 0)
43+ if ((size = avpriv_aac_parse_header(&bits, &hdr)) < 0)
4444 return 0;
4545 *need_next_header = 0;
4646 *new_frame_start = 1;
libavcodec/aacadtsdec.c+1−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626 #include "get_bits.h"
2727 #include "mpeg4audio.h"
2828
29−int ff_aac_parse_header(GetBitContext *gbc, AACADTSHeaderInfo *hdr)
29+int avpriv_aac_parse_header(GetBitContext *gbc, AACADTSHeaderInfo *hdr)
3030 {
3131 int size, rdb, ch, sr;
3232 int aot, crc_abs;
libavcodec/aacadtsdec.h+1−1
@@ -49,6 +49,6 @@ typedef struct { · 48 unmodified lines
4949 * -2 if the version element is invalid, -3 if the sample rate
5050 * element is invalid, or -4 if the bit rate element is invalid.
5151 */
52−int ff_aac_parse_header(GetBitContext *gbc, AACADTSHeaderInfo *hdr);
52+int avpriv_aac_parse_header(GetBitContext *gbc, AACADTSHeaderInfo *hdr);
5353
5454 #endif /* AVCODEC_AACADTSDEC_H */
libavcodec/aacdec.c+1−1
@@ -2075,7 +2075,7 @@ static int parse_adts_frame_header(AACContext *ac, GetBitContext *gb) · 2074 unmodified lines
20752075 int size;
20762076 AACADTSHeaderInfo hdr_info;
20772077
2078− size = ff_aac_parse_header(gb, &hdr_info);
2078+ size = avpriv_aac_parse_header(gb, &hdr_info);
20792079 if (size > 0) {
20802080 if (ac->output_configured != OC_LOCKED && hdr_info.chan_config) {
20812081 enum ChannelPosition new_che_pos[4][MAX_ELEM_ID];
libavformat/spdifdec.c+1−1
@@ -57,7 +57,7 @@ static int spdif_get_offset_and_codec(AVFormatContext *s, · 56 unmodified lines
5757 break;
5858 case IEC61937_MPEG2_AAC:
5959 init_get_bits(&gbc, buf, AAC_ADTS_HEADER_SIZE * 8);
60− if (ff_aac_parse_header(&gbc, &aac_hdr)) {
60+ if (avpriv_aac_parse_header(&gbc, &aac_hdr)) {
6161 if (s) /* be silent during a probe */
6262 av_log(s, AV_LOG_ERROR, "Invalid AAC packet in IEC 61937\n");
6363 return AVERROR_INVALIDDATA;
libavformat/spdifenc.c+1−1
@@ -349,7 +349,7 @@ static int spdif_header_aac(AVFormatContext *s, AVPacket *pkt) · 348 unmodified lines
349349 int ret;
350350
351351 init_get_bits(&gbc, pkt->data, AAC_ADTS_HEADER_SIZE * 8);
352− ret = ff_aac_parse_header(&gbc, &hdr);
352+ ret = avpriv_aac_parse_header(&gbc, &hdr);
353353 if (ret < 0) {
354354 av_log(s, AV_LOG_ERROR, "Wrong AAC file format\n");
355355 return AVERROR_INVALIDDATA;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t