]> git.sesse.net Git - ffmpeg/commitdiff
swscale/swscale: clear to/from convert pointers when they used.
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 14 Apr 2014 21:15:31 +0000 (23:15 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 14 Apr 2014 21:15:31 +0000 (23:15 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/swscale.c

index cbf1074109fc6571304178dda62077fce7e8f50a..4762f584dcf33cad27e36c0c376c52bb94f3af00 100644 (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) {