diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-17 22:05:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-17 22:05:10 +0300 |
commit | fd90685a48f6fae30e6731bc4a805930e776f117 (patch) | |
tree | 8d901c26f5291ff4b5de03b023d7cadc6a71d713 /release/plugins | |
parent | b48f7901d27f28d5e0aa10d352f31ecd2cf71e25 (diff) |
remove some paranoid NULL checks, since the pointers are used already.
Diffstat (limited to 'release/plugins')
-rw-r--r-- | release/plugins/sequence/color-correction-hsv.c | 3 | ||||
-rw-r--r-- | release/plugins/sequence/color-correction-yuv.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/release/plugins/sequence/color-correction-hsv.c b/release/plugins/sequence/color-correction-hsv.c index 120ca76bbe7..cff2f1aad82 100644 --- a/release/plugins/sequence/color-correction-hsv.c +++ b/release/plugins/sequence/color-correction-hsv.c @@ -187,12 +187,13 @@ void plugin_seq_doit(Cast *cast, float facf0, float facf1, int width, double gamma_table[256]; double uv_table[256]; float *destf = out->rect_float; - float *src1f = ibuf1->rect_float; + float *src1f; if (!ibuf1) return; dest= (char *) out->rect; src1= (char *) ibuf1->rect; + src1f= ibuf1->rect_float; for (y = 0; y < 256; y++) { float v = 1.0 * y / 255; diff --git a/release/plugins/sequence/color-correction-yuv.c b/release/plugins/sequence/color-correction-yuv.c index 721cadb07ce..b80489f3b0b 100644 --- a/release/plugins/sequence/color-correction-yuv.c +++ b/release/plugins/sequence/color-correction-yuv.c @@ -120,12 +120,13 @@ void plugin_seq_doit(Cast *cast, float facf0, float facf1, int width, float gamma_table[256]; float uv_table[256]; float *destf = out->rect_float; - float *src1f = ibuf1->rect_float; + float *src1f; if (!ibuf1) return; dest= (char *) out->rect; src1= (char *) ibuf1->rect; + src1f= ibuf1->rect_float; for (y = 0; y < 256; y++) { float v = 1.0 * y / 255; |