Mercurial > libavcodec.hg
comparison aac_ac3_parser.h @ 8545:a5402e89a80c libavcodec
Factorise enum of AC3 error types to be usable by AAC in the ADTS patch that
will follow
Patch by Alex Converse ( alex converse gmail com )
author | superdump |
---|---|
date | Wed, 07 Jan 2009 18:10:10 +0000 |
parents | c4a4495715dd |
children | 04423b2f6e0b |
comparison
equal
deleted
inserted
replaced
8544:0ae8629baf6f | 8545:a5402e89a80c |
---|---|
25 | 25 |
26 #include <stdint.h> | 26 #include <stdint.h> |
27 #include "avcodec.h" | 27 #include "avcodec.h" |
28 #include "parser.h" | 28 #include "parser.h" |
29 | 29 |
30 typedef enum { | |
31 AAC_AC3_PARSE_ERROR_SYNC = -1, | |
32 AAC_AC3_PARSE_ERROR_BSID = -2, | |
33 AAC_AC3_PARSE_ERROR_SAMPLE_RATE = -3, | |
34 AAC_AC3_PARSE_ERROR_FRAME_SIZE = -4, | |
35 AAC_AC3_PARSE_ERROR_FRAME_TYPE = -5, | |
36 AAC_AC3_PARSE_ERROR_CRC = -6, | |
37 AAC_AC3_PARSE_ERROR_CHANNEL_CFG = -7, | |
38 } AACAC3ParseError; | |
39 | |
30 typedef struct AACAC3ParseContext { | 40 typedef struct AACAC3ParseContext { |
31 ParseContext pc; | 41 ParseContext pc; |
32 int frame_size; | 42 int frame_size; |
33 int header_size; | 43 int header_size; |
34 int (*sync)(uint64_t state, struct AACAC3ParseContext *hdr_info, | 44 int (*sync)(uint64_t state, struct AACAC3ParseContext *hdr_info, |