Handle FFmpeg filter EOF as a normal receive state (#355)

This commit is contained in:
Bruno 2026-10-05 13:59:53 +02:00 committed by GitHub
parent 7ada862d7e
commit 790d6fbf9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ std::unique_ptr<Frame> DeinterlaceFilter::DrainSinkFrame()
{
auto dst_frame = std::make_unique<Frame>();
const int ret = av_buffersink_get_frame(m_sink_context, dst_frame->GetFrame());
if (ret == AVERROR(EAGAIN) || ret == AVERROR(AVERROR_EOF))
if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)
{
return {};
}