Browse Source

swscale/swscale: clear to/from convert pointers when they used.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 12 years ago
parent
commit
3751e5a821
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libswscale/swscale.c

+ 2
- 0
libswscale/swscale.c View File

@@ -731,6 +731,8 @@ static av_cold void sws_init_swscale(SwsContext *c)
: hScale16To15_c;
}

c->lumConvertRange = NULL;
c->chrConvertRange = NULL;
if (c->srcRange != c->dstRange && !isAnyRGB(c->dstFormat)) {
if (c->dstBpc <= 14) {
if (c->srcRange) {


Loading…
Cancel
Save