Mercurial > libavcodec.hg
diff aac_ac3_parser.h @ 6527:32b984487899 libavcodec
Pass AACAC3ParseContext to sync() instead of individual arguments. Patch by
Bartlomiej Wolowiec (bartek wolowiec gmail com)
author | jbr |
---|---|
date | Sun, 23 Mar 2008 15:43:29 +0000 |
parents | 1d83e9c34641 |
children | 5542d0c04a55 |
line wrap: on
line diff
--- a/aac_ac3_parser.h Sat Mar 22 17:34:29 2008 +0000 +++ b/aac_ac3_parser.h Sun Mar 23 15:43:29 2008 +0000 @@ -30,9 +30,13 @@ 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,