Commit 4472782c authored by michael's avatar michael

part 1 of EAC3 support


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12896 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 62b39e07
...@@ -33,9 +33,10 @@ int ff_aac_ac3_parse(AVCodecParserContext *s1, ...@@ -33,9 +33,10 @@ int ff_aac_ac3_parse(AVCodecParserContext *s1,
int len, i; int len, i;
int new_frame_start; int new_frame_start;
get_next:
i=END_NOT_FOUND; i=END_NOT_FOUND;
if(s->remaining_size <= buf_size){ if(s->remaining_size <= buf_size){
if(s->remaining_size){ if(s->remaining_size && !s->need_next_header){
i= s->remaining_size; i= s->remaining_size;
s->remaining_size = 0; s->remaining_size = 0;
}else{ //we need a header first }else{ //we need a header first
...@@ -50,6 +51,8 @@ int ff_aac_ac3_parse(AVCodecParserContext *s1, ...@@ -50,6 +51,8 @@ int ff_aac_ac3_parse(AVCodecParserContext *s1,
}else{ }else{
i-= s->header_size -1; i-= s->header_size -1;
s->remaining_size = len + i; s->remaining_size = len + i;
if(!new_frame_start)
goto get_next;
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment