From bee92158057ce5efc4256d8e5fb9f7d4e0b8bbba Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 3 Oct 2023 18:09:00 -0500 Subject: [PATCH] Fix loading dummy image in the sync encoding path --- src/video.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/video.cpp b/src/video.cpp index 15acc9ee..a6083f56 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -1880,6 +1880,12 @@ namespace video { return std::nullopt; } + // Load the initial image to prepare for encoding + if (session->convert(img)) { + BOOST_LOG(error) << "Could not convert initial image"sv; + return std::nullopt; + } + encode_session.session = std::move(session); return encode_session;