diff options
author | Niklas Haas <git@haasn.dev> | 2023-05-21 12:22:56 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2023-05-22 10:31:13 +0200 |
commit | c00fd025587fc8f028cda2c36f0061070fe91a35 (patch) | |
tree | 7d0f0a569f02b4fd30d3a62f0a79f606131ebba2 /fftools/cmdutils.c | |
parent | 7428f1e8f2d1ed2d43edbb240d776a39ea205512 (diff) | |
download | ffmpeg-c00fd025587fc8f028cda2c36f0061070fe91a35.tar.gz |
lavfi/libplacebo: properly handle EOF
The current code relied on pl_queue eventually returning EOF back to the
caller, which didn't work in all situations (e.g. single frame input).
Also, the current code assumed that ff_inlink_acknowledge_status only
fired once, which was patently not true, as the above edge cases
demonstrated.
Solve both issues by keeping track of the acknowledged link status and
forwarding it (instead of trying to probe the pl_queue again) in the
event that we run out of queued input frames, as well as (in CFR mode)
when we pass the indicated status PTS.
Diffstat (limited to 'fftools/cmdutils.c')
0 files changed, 0 insertions, 0 deletions