Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-11-16 13:37:20 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2015-11-16 13:37:43 +0300
commit5e6ab80cb0c999019eb73b2b0fa2c448253e8a48 (patch)
tree97fa7d338b62050b5ebde43a999cc5bd585013a7 /decoder/LAVVideo/pixconv
parentf8dc0f52b6fcea45704d6f7a5ceeb404e4a524b3 (diff)
Don't change YUV matrix when converting pixfmts
On top of delivering correct colors, this avoids a slow intermediate conversion step.
Diffstat (limited to 'decoder/LAVVideo/pixconv')
-rw-r--r--decoder/LAVVideo/pixconv/convert_generic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/LAVVideo/pixconv/convert_generic.cpp b/decoder/LAVVideo/pixconv/convert_generic.cpp
index 39a92eed..9cb6b06a 100644
--- a/decoder/LAVVideo/pixconv/convert_generic.cpp
+++ b/decoder/LAVVideo/pixconv/convert_generic.cpp
@@ -129,7 +129,7 @@ inline SwsContext *CLAVPixFmtConverter::GetSWSContext(int width, int height, enu
rgbTbl = sws_getCoefficients(isHD ? SWS_CS_ITU709 : SWS_CS_ITU601);
}
srcRange = dstRange = (m_ColorProps.NominalRange == DXVA2_NominalRange_0_255);
- sws_setColorspaceDetails(m_pSwsContext, rgbTbl, srcRange, tbl, dstRange, brightness, contrast, saturation);
+ sws_setColorspaceDetails(m_pSwsContext, rgbTbl, srcRange, rgbTbl, dstRange, brightness, contrast, saturation);
}
swsWidth = width;
swsHeight = height;