summaryrefslogtreecommitdiff
path: root/libavcodec/aac_ac3_parser.h
diff options
context:
space:
mode:
authorBartlomiej Wolowiec <bartek.wolowiec@gmail.com>2008-03-28 19:59:58 +0000
committerBartlomiej Wolowiec <bartek.wolowiec@gmail.com>2008-03-28 19:59:58 +0000
commitbe1e2a2bfa592ff14355c6b97e90c530e2c0fcc0 (patch)
treea9d7171af4f5eda9a96a8aff32b824034df9b474 /libavcodec/aac_ac3_parser.h
parent5610f20ed4358af3c1380ceb79ee51e258df79bf (diff)
removal of stream_type in AACAC3ParseContext and adding AACAC3FrameFlag
Originally committed as revision 12622 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aac_ac3_parser.h')
-rw-r--r--libavcodec/aac_ac3_parser.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/libavcodec/aac_ac3_parser.h b/libavcodec/aac_ac3_parser.h
index 49982500cc..ec9ce48a4a 100644
--- a/libavcodec/aac_ac3_parser.h
+++ b/libavcodec/aac_ac3_parser.h
@@ -26,18 +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);
+ int (*sync)(struct AACAC3ParseContext *hdr_info, AACAC3FrameFlag *flag);
uint8_t inbuf[8192]; /* input buffer */
int channels;
int sample_rate;
int bit_rate;
int samples;
- uint8_t stream_type;
} AACAC3ParseContext;
int ff_aac_ac3_parse(AVCodecParserContext *s1,