[FFmpeg-cvslog] swscale/swscale: clear to/from convert pointers when they used.

Michael Niedermayer git at videolan.org
Tue Apr 15 01:04:19 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Apr 14 23:15:31 2014 +0200| [3751e5a8214d05998ecce17f25af98e64abfefff] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3751e5a8214d05998ecce17f25af98e64abfefff
---

 libswscale/swscale.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index cbf1074..4762f58 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -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) {



More information about the ffmpeg-cvslog mailing list