comparison aac_ac3_parser.h @ 6642:866b9ade048c libavcodec

Change aac and ac3 parsers to use ff_combine_frame().
author michael
date Sat, 19 Apr 2008 01:50:40 +0000
parents 1980eba5fd0e
children 4d04fcb5e1e4
comparison
equal deleted inserted replaced
6641:25a963680a88 6642:866b9ade048c
25 25
26 #include <stdint.h> 26 #include <stdint.h>
27 #include "avcodec.h" 27 #include "avcodec.h"
28 28
29 typedef struct AACAC3ParseContext { 29 typedef struct AACAC3ParseContext {
30 uint8_t *inbuf_ptr;
31 int frame_size; 30 int frame_size;
32 int header_size; 31 int header_size;
33 int (*sync)(struct AACAC3ParseContext *hdr_info); 32 int (*sync)(uint64_t state, struct AACAC3ParseContext *hdr_info);
34 uint8_t inbuf[8192]; /* input buffer */
35 33
36 int channels; 34 int channels;
37 int sample_rate; 35 int sample_rate;
38 int bit_rate; 36 int bit_rate;
39 int samples; 37 int samples;
38
39 ParseContext pc;
40 int remaining_size;
41 uint64_t state;
40 } AACAC3ParseContext; 42 } AACAC3ParseContext;
41 43
42 int ff_aac_ac3_parse(AVCodecParserContext *s1, 44 int ff_aac_ac3_parse(AVCodecParserContext *s1,
43 AVCodecContext *avctx, 45 AVCodecContext *avctx,
44 const uint8_t **poutbuf, int *poutbuf_size, 46 const uint8_t **poutbuf, int *poutbuf_size,