You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-06 06:27:36 +02:00
avcodec/aac_ac3_parser: don't try to sync when the parser is configured to handle complete frames
Should speed up parsing when the frames come from non raw containers. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@ -40,6 +40,10 @@ int ff_aac_ac3_parse(AVCodecParserContext *s1,
|
|||||||
int new_frame_start;
|
int new_frame_start;
|
||||||
int got_frame = 0;
|
int got_frame = 0;
|
||||||
|
|
||||||
|
if (s1->flags & PARSER_FLAG_COMPLETE_FRAMES) {
|
||||||
|
i = buf_size;
|
||||||
|
got_frame = 1;
|
||||||
|
} else {
|
||||||
get_next:
|
get_next:
|
||||||
i=END_NOT_FOUND;
|
i=END_NOT_FOUND;
|
||||||
if(s->remaining_size <= buf_size){
|
if(s->remaining_size <= buf_size){
|
||||||
@ -77,6 +81,7 @@ get_next:
|
|||||||
*poutbuf_size = 0;
|
*poutbuf_size = 0;
|
||||||
return buf_size;
|
return buf_size;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
*poutbuf = buf;
|
*poutbuf = buf;
|
||||||
*poutbuf_size = buf_size;
|
*poutbuf_size = buf_size;
|
||||||
|
Reference in New Issue
Block a user