diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-19 23:08:29 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-19 23:24:26 +0200 |
commit | b53bdae11f1eceea1a2e25a98aee81e1d1954e14 (patch) | |
tree | b7d074a29070b8e46f3cd36cc9af4821f231542b | |
parent | d84abf35c0f39104db482d7519a30585eba75e0d (diff) | |
download | ffmpeg-b53bdae11f1eceea1a2e25a98aee81e1d1954e14.tar.gz |
swscale/utils: fix rgb -> fullrange yuv
Fixes part of Ticket3785
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libswscale/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index e176f0b75b..851965091a 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -838,7 +838,7 @@ int sws_setColorspaceDetails(struct SwsContext *c, const int inv_table[4], //The srcBpc check is possibly wrong but we seem to lack a definitive reference to test this //and what we have in ticket 2939 looks better with this check - if (need_reinit && c->srcBpc == 8) + if (need_reinit && (c->srcBpc == 8 || !isYUV(c->srcFormat))) ff_sws_init_range_convert(c); if ((isYUV(c->dstFormat) || isGray(c->dstFormat)) && (isYUV(c->srcFormat) || isGray(c->srcFormat))) |