Fix loading dummy image in the sync encoding path
This commit is contained in:
parent
3246428b7d
commit
bee9215805
1 changed files with 6 additions and 0 deletions
|
|
@ -1880,6 +1880,12 @@ namespace video {
|
||||||
return std::nullopt;
|
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);
|
encode_session.session = std::move(session);
|
||||||
|
|
||||||
return encode_session;
|
return encode_session;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue