fix incorrect pix_fmt
This commit is contained in:
parent
4a3f3622b8
commit
747ba7f23a
1 changed files with 2 additions and 1 deletions
|
|
@ -1313,7 +1313,8 @@ void capture_async(
|
|||
display = ref->display_wp->lock();
|
||||
}
|
||||
|
||||
auto pix_fmt = config.dynamicRange == 0 ? platf::pix_fmt_e::yuv420p : platf::pix_fmt_e::yuv420p10;
|
||||
auto &encoder = encoders.front();
|
||||
auto pix_fmt = config.dynamicRange == 0 ? map_pix_fmt(encoder.static_pix_fmt) : map_pix_fmt(encoder.dynamic_pix_fmt);
|
||||
auto hwdevice = display->make_hwdevice(pix_fmt);
|
||||
if(!hwdevice) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue