Skip to content

Commit

Permalink
MPCVideoDec: не обращаемся у полям SwsContext, т.к. вскоре они будут …
Browse files Browse the repository at this point in the history
…недоступны.
  • Loading branch information
v0lt committed Nov 2, 2024
1 parent a1e126b commit b83f16e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filters/transform/MPCVideoDec/FormatConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ void CFormatConverter::UpdateSWSContext()
dstRange = 1;
}

if (isAnyRGB(m_pSwsContext->srcFormat) || isAnyRGB(m_pSwsContext->dstFormat)) {
if (isAnyRGB(m_FProps.avpixfmt) || isAnyRGB(s_sw_formats[m_out_pixfmt].av_pix_fmt)) {
// SWS_CS_* does not fully comply with the AVCOL_SPC_*, but it is well handled in the libswscale.
inv_tbl = (int *)sws_getCoefficients(m_FProps.colorspace);
}
Expand Down

0 comments on commit b83f16e

Please sign in to comment.