diff aac_ac3_parser.c @ 6539:04763b6fd4f0 libavcodec

removal of stream_type in AACAC3ParseContext and adding AACAC3FrameFlag
author bwolowiec
date Fri, 28 Mar 2008 19:59:58 +0000
parents 32b984487899
children 013def14c931
line wrap: on
line diff
--- a/aac_ac3_parser.c	Wed Mar 26 22:36:41 2008 +0000
+++ b/aac_ac3_parser.c	Fri Mar 28 19:59:58 2008 +0000
@@ -29,6 +29,7 @@
                      const uint8_t *buf, int buf_size)
 {
     AACAC3ParseContext *s = s1->priv_data;
+    AACAC3FrameFlag frame_flag;
     const uint8_t *buf_ptr;
     int len;
 
@@ -50,7 +51,7 @@
 
         if (s->frame_size == 0) {
             if ((s->inbuf_ptr - s->inbuf) == s->header_size) {
-                len = s->sync(s);
+                len = s->sync(s, &frame_flag);
                 if (len == 0) {
                     /* no sync found : move by one byte (inefficient, but simple!) */
                     memmove(s->inbuf, s->inbuf + 1, s->header_size - 1);