• Reimar Döffinger's avatar
    Handle 0-size sync packets when only parsing headers. · 699c61d2
    Reimar Döffinger authored
    Currently, the duration of those packets is just discarded
    when enabling parsing, thus the output of the Metal Gear Solid
    demuxer breaks completely when just setting AVSTREAM_PARSE_HEADERS.
    The result will not be correct if a parser creates a delay even
    with PARSER_FLAG_COMPLETE_FRAMES and there might be other cases
    where it does not work correct, but just discarding them as it
    is done currently seems worse.
    Signed-off-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
    699c61d2
utils.c 141 KB