summaryrefslogtreecommitdiff
path: root/libavcodec/aac_ac3_parser.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2008-03-23 15:43:29 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2008-03-23 15:43:29 +0000
commitc599e297e714b572e1bea2f4e59c319dce13b174 (patch)
treeec77afb8956ddb004532847b0908f5c645eb6592 /libavcodec/aac_ac3_parser.h
parent721392606bafd5a6971cce2d93fe5d0bc2a76927 (diff)
Pass AACAC3ParseContext to sync() instead of individual arguments. Patch by
Bartlomiej Wolowiec (bartek wolowiec gmail com) Originally committed as revision 12564 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aac_ac3_parser.h')
-rw-r--r--libavcodec/aac_ac3_parser.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libavcodec/aac_ac3_parser.h b/libavcodec/aac_ac3_parser.h
index e927de02dd..f93f8a81e9 100644
--- a/libavcodec/aac_ac3_parser.h
+++ b/libavcodec/aac_ac3_parser.h
@@ -30,9 +30,13 @@ 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);
+ int (*sync)(struct AACAC3ParseContext *hdr_info);
uint8_t inbuf[8192]; /* input buffer */
+
+ int channels;
+ int sample_rate;
+ int bit_rate;
+ int samples;
} AACAC3ParseContext;
int ff_aac_ac3_parse(AVCodecParserContext *s1,