Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
6526:737b74bec1e5 | 6527:32b984487899 |
---|---|
28 | 28 |
29 typedef struct AACAC3ParseContext { | 29 typedef struct AACAC3ParseContext { |
30 uint8_t *inbuf_ptr; | 30 uint8_t *inbuf_ptr; |
31 int frame_size; | 31 int frame_size; |
32 int header_size; | 32 int header_size; |
33 int (*sync)(const uint8_t *buf, int *channels, int *sample_rate, | 33 int (*sync)(struct AACAC3ParseContext *hdr_info); |
34 int *bit_rate, int *samples); | |
35 uint8_t inbuf[8192]; /* input buffer */ | 34 uint8_t inbuf[8192]; /* input buffer */ |
35 | |
36 int channels; | |
37 int sample_rate; | |
38 int bit_rate; | |
39 int samples; | |
36 } AACAC3ParseContext; | 40 } AACAC3ParseContext; |
37 | 41 |
38 int ff_aac_ac3_parse(AVCodecParserContext *s1, | 42 int ff_aac_ac3_parse(AVCodecParserContext *s1, |
39 AVCodecContext *avctx, | 43 AVCodecContext *avctx, |
40 const uint8_t **poutbuf, int *poutbuf_size, | 44 const uint8_t **poutbuf, int *poutbuf_size, |