Add new_frame_start and need_next_header.

based on a patch by Bartlomiej

Originally committed as revision 12895 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2008-04-19 01:59:55 +00:00
parent 454064ad1e
commit 133ac890fb
4 changed files with 14 additions and 4 deletions

View File

@@ -29,7 +29,8 @@
typedef struct AACAC3ParseContext {
int frame_size;
int header_size;
int (*sync)(uint64_t state, struct AACAC3ParseContext *hdr_info);
int (*sync)(uint64_t state, struct AACAC3ParseContext *hdr_info,
int *need_next_header, int *new_frame_start);
int channels;
int sample_rate;
@@ -39,6 +40,8 @@ typedef struct AACAC3ParseContext {
ParseContext pc;
int remaining_size;
uint64_t state;
int need_next_header;
} AACAC3ParseContext;
int ff_aac_ac3_parse(AVCodecParserContext *s1,