Mercurial > libavcodec.hg
comparison aac_ac3_parser.h @ 7138:1f85910c9ab2 libavcodec
Close parse context.
Patch by David LIU david liu st com
author | benoit |
---|---|
date | Wed, 25 Jun 2008 12:30:35 +0000 |
parents | 459fe563a4dc |
children | 1a93d3bbe3ee |
comparison
equal
deleted
inserted
replaced
7137:186eb61a9860 | 7138:1f85910c9ab2 |
---|---|
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 struct AACAC3ParseContext { | 30 typedef struct AACAC3ParseContext { |
31 ParseContext pc; | |
31 int frame_size; | 32 int frame_size; |
32 int header_size; | 33 int header_size; |
33 int (*sync)(uint64_t state, struct AACAC3ParseContext *hdr_info, | 34 int (*sync)(uint64_t state, struct AACAC3ParseContext *hdr_info, |
34 int *need_next_header, int *new_frame_start); | 35 int *need_next_header, int *new_frame_start); |
35 | 36 |
36 int channels; | 37 int channels; |
37 int sample_rate; | 38 int sample_rate; |
38 int bit_rate; | 39 int bit_rate; |
39 int samples; | 40 int samples; |
40 | 41 |
41 ParseContext pc; | |
42 int remaining_size; | 42 int remaining_size; |
43 uint64_t state; | 43 uint64_t state; |
44 | 44 |
45 int need_next_header; | 45 int need_next_header; |
46 } AACAC3ParseContext; | 46 } AACAC3ParseContext; |