Browse Source

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: James Almer <jamrial@gmail.com>
tags/n4.0
James Almer 8 years ago
parent
commit
55ebf707d0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavcodec/mlp_parser.c

+ 4
- 0
libavcodec/mlp_parser.c View File

@@ -256,6 +256,9 @@ static int mlp_parse(AVCodecParserContext *s,
if (buf_size == 0)
return 0;

if (s->flags & PARSER_FLAG_COMPLETE_FRAMES) {
next = buf_size;
} else {
if (!mp->in_sync) {
// Not in sync - find a major sync header

@@ -315,6 +318,7 @@ static int mlp_parse(AVCodecParserContext *s,
}

mp->bytes_left = 0;
}

sync_present = (AV_RB32(buf + 4) & 0xfffffffe) == 0xf8726fba;



Loading…
Cancel
Save