diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-04-19 01:59:55 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-04-19 01:59:55 +0000 |
commit | 133ac890fbe48b2989a257eb58bfc0b3690ee054 (patch) | |
tree | b61a61945cc719a15eda2e351c751c687a880079 /libavcodec/aac_ac3_parser.c | |
parent | 454064ad1eb39ffbea4906dbe2e246e18a5d5d67 (diff) | |
download | ffmpeg-133ac890fbe48b2989a257eb58bfc0b3690ee054.tar.gz |
Add new_frame_start and need_next_header.
based on a patch by Bartlomiej
Originally committed as revision 12895 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aac_ac3_parser.c')
-rw-r--r-- | libavcodec/aac_ac3_parser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/aac_ac3_parser.c b/libavcodec/aac_ac3_parser.c index b3d4556734..8d7e20c516 100644 --- a/libavcodec/aac_ac3_parser.c +++ b/libavcodec/aac_ac3_parser.c @@ -31,6 +31,7 @@ int ff_aac_ac3_parse(AVCodecParserContext *s1, 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 @@ int ff_aac_ac3_parse(AVCodecParserContext *s1, 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){ |