Commit 55ebf707 authored by James Almer's avatar James Almer

avcodec/mlp_parser: don't try to combine frames when full frames are provided

Attempting full frame reconstruction is unnecessary for non raw
containers, so just skip it altogether.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 63b5d04e
...@@ -256,6 +256,9 @@ static int mlp_parse(AVCodecParserContext *s, ...@@ -256,6 +256,9 @@ static int mlp_parse(AVCodecParserContext *s,
if (buf_size == 0) if (buf_size == 0)
return 0; return 0;
if (s->flags & PARSER_FLAG_COMPLETE_FRAMES) {
next = buf_size;
} else {
if (!mp->in_sync) { if (!mp->in_sync) {
// Not in sync - find a major sync header // Not in sync - find a major sync header
...@@ -315,6 +318,7 @@ static int mlp_parse(AVCodecParserContext *s, ...@@ -315,6 +318,7 @@ static int mlp_parse(AVCodecParserContext *s,
} }
mp->bytes_left = 0; mp->bytes_left = 0;
}
sync_present = (AV_RB32(buf + 4) & 0xfffffffe) == 0xf8726fba; sync_present = (AV_RB32(buf + 4) & 0xfffffffe) == 0xf8726fba;
......
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