diff 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
line wrap: on
line diff
--- a/aac_ac3_parser.h	Fri Apr 18 08:58:18 2008 +0000
+++ b/aac_ac3_parser.h	Sat Apr 19 01:50:40 2008 +0000
@@ -27,16 +27,18 @@
 #include "avcodec.h"
 
 typedef struct AACAC3ParseContext {
-    uint8_t *inbuf_ptr;
     int frame_size;
     int header_size;
-    int (*sync)(struct AACAC3ParseContext *hdr_info);
-    uint8_t inbuf[8192]; /* input buffer */
+    int (*sync)(uint64_t state, struct AACAC3ParseContext *hdr_info);
 
     int channels;
     int sample_rate;
     int bit_rate;
     int samples;
+
+    ParseContext pc;
+    int remaining_size;
+    uint64_t state;
 } AACAC3ParseContext;
 
 int ff_aac_ac3_parse(AVCodecParserContext *s1,