]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
cosmetics: rename for consistency after previous aac and ac3 parsers move
authoraurel <aurel@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 8 May 2007 23:29:07 +0000 (23:29 +0000)
committeraurel <aurel@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 8 May 2007 23:29:07 +0000 (23:29 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8942 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/aac_ac3_parser.c
libavcodec/aac_ac3_parser.h
libavcodec/aac_parser.c
libavcodec/ac3_parser.c

index 4dcf3974f1f1f714933dae9b3adf6d8eb17cdd0d..b07f93acf07e2a808ce662cf256f66ada7e694c5 100644 (file)
 #include "parser.h"
 #include "aac_ac3_parser.h"
 
-int ac3_parse(AVCodecParserContext *s1,
+int ff_aac_ac3_parse(AVCodecParserContext *s1,
                      AVCodecContext *avctx,
                      const uint8_t **poutbuf, int *poutbuf_size,
                      const uint8_t *buf, int buf_size)
 {
-    AC3ParseContext *s = s1->priv_data;
+    AACAC3ParseContext *s = s1->priv_data;
     const uint8_t *buf_ptr;
     int len, sample_rate, bit_rate, channels, samples;
 
index 03a6368ee78057494e1fccfbc3312f95d1001cf8..a97ffd162cb3dd02a5aae5ddcb956c0f9a0993c8 100644 (file)
 #ifndef AAC_AC3_PARSER_H
 #define AAC_AC3_PARSER_H
 
-typedef struct AC3ParseContext {
+typedef struct AACAC3ParseContext {
     uint8_t *inbuf_ptr;
     int frame_size;
     int header_size;
     int (*sync)(const uint8_t *buf, int *channels, int *sample_rate,
                 int *bit_rate, int *samples);
     uint8_t inbuf[8192]; /* input buffer */
-} AC3ParseContext;
+} AACAC3ParseContext;
 
-int ac3_parse(AVCodecParserContext *s1,
+int ff_aac_ac3_parse(AVCodecParserContext *s1,
                      AVCodecContext *avctx,
                      const uint8_t **poutbuf, int *poutbuf_size,
                      const uint8_t *buf, int buf_size);
index 3962289917df7a07c433c177d7ffef9c59868e54..d6cf2693fcaa47b126ac3fc771a6258cc0c5a484 100644 (file)
@@ -80,7 +80,7 @@ static int aac_sync(const uint8_t *buf, int *channels, int *sample_rate,
 
 static int aac_parse_init(AVCodecParserContext *s1)
 {
-    AC3ParseContext *s = s1->priv_data;
+    AACAC3ParseContext *s = s1->priv_data;
     s->inbuf_ptr = s->inbuf;
     s->header_size = AAC_HEADER_SIZE;
     s->sync = aac_sync;
@@ -90,8 +90,8 @@ static int aac_parse_init(AVCodecParserContext *s1)
 
 AVCodecParser aac_parser = {
     { CODEC_ID_AAC },
-    sizeof(AC3ParseContext),
+    sizeof(AACAC3ParseContext),
     aac_parse_init,
-    ac3_parse,
+    ff_aac_ac3_parse,
     NULL,
 };
index 0563b8b2b17701ed91fe77fe02f494d7f61234a0..4758ef2b517912ce31b8bd164ac0260d30e7df8f 100644 (file)
@@ -145,7 +145,7 @@ static int ac3_sync(const uint8_t *buf, int *channels, int *sample_rate,
 
 static int ac3_parse_init(AVCodecParserContext *s1)
 {
-    AC3ParseContext *s = s1->priv_data;
+    AACAC3ParseContext *s = s1->priv_data;
     s->inbuf_ptr = s->inbuf;
     s->header_size = AC3_HEADER_SIZE;
     s->sync = ac3_sync;
@@ -155,8 +155,8 @@ static int ac3_parse_init(AVCodecParserContext *s1)
 
 AVCodecParser ac3_parser = {
     { CODEC_ID_AC3 },
-    sizeof(AC3ParseContext),
+    sizeof(AACAC3ParseContext),
     ac3_parse_init,
-    ac3_parse,
+    ff_aac_ac3_parse,
     NULL,
 };