Browse Source

swscale/utils: fix rgb -> fullrange yuv

Fixes part of Ticket3785

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4
Michael Niedermayer 11 years ago
parent
commit
b53bdae11f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libswscale/utils.c

+ 1
- 1
libswscale/utils.c View File

@@ -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)))


Loading…
Cancel
Save