summaryrefslogtreecommitdiff
path: root/libswscale/yuv2rgb.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2016-03-31 16:00:58 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2016-04-01 15:39:47 -0400
commit98038e2ee0c40530c42db70ed3d2f5e0c17b175e (patch)
tree549c670ce74577c15f87d65b4bd717ec963f5708 /libswscale/yuv2rgb.c
parent0de1c1ab869f6dd6ce97b00ae52cee6e8b3c735a (diff)
downloadffmpeg-98038e2ee0c40530c42db70ed3d2f5e0c17b175e.tar.gz
swscale: fix bt709 yuv2rgb coefficients.
They were derived from incorrect values cr=0.2125 (should be cr=0.2126) and cb=0.0721 (should be cb=0.0722).
Diffstat (limited to 'libswscale/yuv2rgb.c')
-rw-r--r--libswscale/yuv2rgb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index 62abb7df8f..a0242bfd11 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -47,8 +47,8 @@
* where Y = cr * R + cg * G + cb * B and cr + cg + cb = 1.
*/
const int32_t ff_yuv2rgb_coeffs[8][4] = {
- { 117504, 138453, 13954, 34903 }, /* no sequence_display_extension */
- { 117504, 138453, 13954, 34903 }, /* ITU-R Rec. 709 (1990) */
+ { 117489, 138438, 13975, 34925 }, /* no sequence_display_extension */
+ { 117489, 138438, 13975, 34925 }, /* ITU-R Rec. 709 (1990) */
{ 104597, 132201, 25675, 53279 }, /* unspecified */
{ 104597, 132201, 25675, 53279 }, /* reserved */
{ 104448, 132798, 24759, 53109 }, /* FCC */