]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/aac_ac3_parser.h
Fixed-point LSP and LPC decoding routines for ACELP-based codecs
[ffmpeg] / libavcodec / aac_ac3_parser.h
index f93f8a81e96a032304ddcef972b888a152f082a3..37a94c8d50baf4b59ac042700b71a649808fc222 100644 (file)
 #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 *need_next_header, int *new_frame_start);
 
     int channels;
     int sample_rate;
     int bit_rate;
     int samples;
+
+    ParseContext pc;
+    int remaining_size;
+    uint64_t state;
+
+    int need_next_header;
 } AACAC3ParseContext;
 
 int ff_aac_ac3_parse(AVCodecParserContext *s1,