From c599e297e714b572e1bea2f4e59c319dce13b174 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Sun, 23 Mar 2008 15:43:29 +0000 Subject: 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 --- libavcodec/aac_ac3_parser.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libavcodec/aac_ac3_parser.h') 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, -- cgit v1.2.3