comparison aac_ac3_parser.h @ 6643:4d04fcb5e1e4 libavcodec

Add new_frame_start and need_next_header. based on a patch by Bartlomiej
author michael
date Sat, 19 Apr 2008 01:59:55 +0000
parents 866b9ade048c
children 459fe563a4dc
comparison
equal deleted inserted replaced
6642:866b9ade048c 6643:4d04fcb5e1e4
27 #include "avcodec.h" 27 #include "avcodec.h"
28 28
29 typedef struct AACAC3ParseContext { 29 typedef struct AACAC3ParseContext {
30 int frame_size; 30 int frame_size;
31 int header_size; 31 int header_size;
32 int (*sync)(uint64_t state, struct AACAC3ParseContext *hdr_info); 32 int (*sync)(uint64_t state, struct AACAC3ParseContext *hdr_info,
33 int *need_next_header, int *new_frame_start);
33 34
34 int channels; 35 int channels;
35 int sample_rate; 36 int sample_rate;
36 int bit_rate; 37 int bit_rate;
37 int samples; 38 int samples;
38 39
39 ParseContext pc; 40 ParseContext pc;
40 int remaining_size; 41 int remaining_size;
41 uint64_t state; 42 uint64_t state;
43
44 int need_next_header;
42 } AACAC3ParseContext; 45 } AACAC3ParseContext;
43 46
44 int ff_aac_ac3_parse(AVCodecParserContext *s1, 47 int ff_aac_ac3_parse(AVCodecParserContext *s1,
45 AVCodecContext *avctx, 48 AVCodecContext *avctx,
46 const uint8_t **poutbuf, int *poutbuf_size, 49 const uint8_t **poutbuf, int *poutbuf_size,