diff aac_ac3_parser.c @ 6643:4d04fcb5e1e4 libavcodec

Add new_frame_start and need_next_header. based on a patch by Bartlomiej
author michael
date Sat, 19 Apr 2008 01:59:55 +0000
parents 866b9ade048c
children 1d9eb7c09f98
line wrap: on
line diff
--- a/aac_ac3_parser.c	Sat Apr 19 01:50:40 2008 +0000
+++ b/aac_ac3_parser.c	Sat Apr 19 01:59:55 2008 +0000
@@ -31,6 +31,7 @@
     AACAC3ParseContext *s = s1->priv_data;
     ParseContext *pc = &s->pc;
     int len, i;
+    int new_frame_start;
 
     i=END_NOT_FOUND;
     if(s->remaining_size <= buf_size){
@@ -41,7 +42,7 @@
             len=0;
             for(i=s->remaining_size; i<buf_size; i++){
                 s->state = (s->state<<8) + buf[i];
-                if((len=s->sync(s->state, s)))
+                if((len=s->sync(s->state, s, &s->need_next_header, &new_frame_start)))
                     break;
             }
             if(len<=0){