• Michael Niedermayer's avatar
    ffmpeg: fix reinitializing with threads while flushing · c69f7299
    Michael Niedermayer authored
    With threads the decoder has a delay and will thus have multiple
    frames at EOF left in its buffers which will be returned when flushing
    the decoder. The code that extracts such frames from the decoder at the
    end does not pull frames from the filtergraph, thus when one of these
    frames causes the filtergraph to be reinited, the frames still inside
    the graph at that point re lost
    
    This commit changes the flushing to be more similar to normal decoding
    and 1 frame at a time
    
    Fixes hqx fate with threads
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    c69f7299
ffmpeg.c 135 KB