• Steven Liu's avatar
    flvdec: Check the avio_seek return value after reading a metadata packet · ef7fe81b
    Steven Liu authored
    merge from libav: 585dc1ae
    
    If the metadata packet is corrupted, flv_read_metabody can accidentally
    read past the start of the next packet. If the start of the next packet
    had been flushed out of the IO buffer, we would be unable to seek to
    the right position (on a nonseekable stream).
    
    Prefer to clearly error out instead of silently trying to read from a
    desynced stream which will only be interpreted as garbage.
    Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
    ef7fe81b
flvdec.c 45.5 KB