Skip to content
Snippets Groups Projects
Commit c69f7299 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

ffmpeg: fix reinitializing with threads while flushing


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: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 7e6cf364
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment