summaryrefslogtreecommitdiff
path: root/libavcodec/aac_ac3_parser.h
diff options
context:
space:
mode:
authorBartlomiej Wolowiec <bartek.wolowiec@gmail.com>2008-04-09 22:11:21 +0000
committerBartlomiej Wolowiec <bartek.wolowiec@gmail.com>2008-04-09 22:11:21 +0000
commit469d8816d6e1a2eaee3f590c1125ed9586da3014 (patch)
treee7fb48b80b8220e355fd37c054c89e13d7e137f4 /libavcodec/aac_ac3_parser.h
parent76ca42a8a010acf7939f5635282279c90a313d78 (diff)
undo changes in aac_ac3_parser
Originally committed as revision 12778 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aac_ac3_parser.h')
-rw-r--r--libavcodec/aac_ac3_parser.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/libavcodec/aac_ac3_parser.h b/libavcodec/aac_ac3_parser.h
index 2049dc7097..ec9ce48a4a 100644
--- a/libavcodec/aac_ac3_parser.h
+++ b/libavcodec/aac_ac3_parser.h
@@ -26,24 +26,23 @@
#include <stdint.h>
#include "avcodec.h"
+typedef enum{
+ FRAME_COMPLETE, ///< Complete frame, ends previous frame
+ FRAME_START, ///< Frame start, ends previous frame
+ FRAME_CONTINUATION ///< Part of the previous frame
+}AACAC3FrameFlag;
+
typedef struct AACAC3ParseContext {
+ uint8_t *inbuf_ptr;
int frame_size;
int header_size;
- int (*sync)(uint64_t state, struct AACAC3ParseContext *hdr_info,
- int *need_next_header, int *new_frame_start);
+ int (*sync)(struct AACAC3ParseContext *hdr_info, AACAC3FrameFlag *flag);
+ uint8_t inbuf[8192]; /* input buffer */
int channels;
int sample_rate;
int bit_rate;
int samples;
-
- ParseContext pc;
- int remaining_size;
- uint64_t state;
-
- int need_next_header;
- int new_frame_start;
- int frame_in_buffer;
} AACAC3ParseContext;
int ff_aac_ac3_parse(AVCodecParserContext *s1,