[FFmpeg-cvslog] r12896 - trunk/libavcodec/aac_ac3_parser.c

michael subversion
Sat Apr 19 04:28:24 CEST 2008


Author: michael
Date: Sat Apr 19 04:28:24 2008
New Revision: 12896

Log:
part 1 of EAC3 support


Modified:
   trunk/libavcodec/aac_ac3_parser.c

Modified: trunk/libavcodec/aac_ac3_parser.c
==============================================================================
--- trunk/libavcodec/aac_ac3_parser.c	(original)
+++ trunk/libavcodec/aac_ac3_parser.c	Sat Apr 19 04:28:24 2008
@@ -33,9 +33,10 @@ int ff_aac_ac3_parse(AVCodecParserContex
     int len, i;
     int new_frame_start;
 
+get_next:
     i=END_NOT_FOUND;
     if(s->remaining_size <= buf_size){
-        if(s->remaining_size){
+        if(s->remaining_size && !s->need_next_header){
             i= s->remaining_size;
             s->remaining_size = 0;
         }else{ //we need a header first
@@ -50,6 +51,8 @@ int ff_aac_ac3_parse(AVCodecParserContex
             }else{
                 i-= s->header_size -1;
                 s->remaining_size = len + i;
+                if(!new_frame_start)
+                    goto get_next;
             }
         }
     }




More information about the ffmpeg-cvslog mailing list