summaryrefslogtreecommitdiff
path: root/libavcodec/aac_ac3_parser.h
diff options
context:
space:
mode:
authorBartlomiej Wolowiec <bartek.wolowiec@gmail.com>2008-04-05 20:09:36 +0000
committerBartlomiej Wolowiec <bartek.wolowiec@gmail.com>2008-04-05 20:09:36 +0000
commit0a5754c3b729cf8fc9b938ac0724ee7261aa1606 (patch)
tree2e7b0cef43ea8ffcd01ae2b1c807336183ba358d /libavcodec/aac_ac3_parser.h
parent0265fe81e4e1c8f8aabb58e1d60a3c0830ea2b5d (diff)
change of aac_ac3_parser, so it is able to send complete portion of data to decoder
Originally committed as revision 12758 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aac_ac3_parser.h')
-rw-r--r--libavcodec/aac_ac3_parser.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/libavcodec/aac_ac3_parser.h b/libavcodec/aac_ac3_parser.h
index ec9ce48a4a..d5b78f7bc4 100644
--- a/libavcodec/aac_ac3_parser.h
+++ b/libavcodec/aac_ac3_parser.h
@@ -26,23 +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)(struct AACAC3ParseContext *hdr_info, AACAC3FrameFlag *flag);
- uint8_t inbuf[8192]; /* input buffer */
+ int (*sync)(uint64_t state, struct AACAC3ParseContext *hdr_info,
+ int *need_next_header, int *new_frame_start);
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;
} AACAC3ParseContext;
int ff_aac_ac3_parse(AVCodecParserContext *s1,