]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
CID:1294424: remove redundant unused code
authorMichael Jerris <mike@jerris.com>
Wed, 22 Apr 2015 15:50:09 +0000 (10:50 -0500)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:24 +0000 (12:47 -0500)
src/switch_core_video.c

index fa305bc3eb418865d458810de59c8647e29f7e7f..2c172681fd9075710d639cb506af706615bd627a 100644 (file)
@@ -983,12 +983,12 @@ SWITCH_DECLARE(switch_status_t) switch_png_patch_img(switch_png_t *use_png, swit
 
        for (i = 0; i < use_png->pvt->png.height; i++) {
                for (j = 0; j < use_png->pvt->png.width; j++) {
-                       alpha = use_png->pvt->buffer[i * use_png->pvt->png.width * 4 + j * 4 + 3];
+                       //alpha = use_png->pvt->buffer[i * use_png->pvt->png.width * 4 + j * 4 + 3];
                        alpha = use_png->pvt->buffer[i * use_png->pvt->png.width * 4 + j * 4];
                        // printf("%d, %d alpha: %d\n", j, i, alpha);
 
                        if (alpha) { // todo, mux alpha with the underlying pixel
-                               rgb_color = (switch_rgb_color_t *)(use_png->pvt->buffer + i * use_png->pvt->png.width * 4 + j * 4);
+                               //rgb_color = (switch_rgb_color_t *)(use_png->pvt->buffer + i * use_png->pvt->png.width * 4 + j * 4);
                                rgb_color = (switch_rgb_color_t *)(use_png->pvt->buffer + i * use_png->pvt->png.width * 4 + j * 4 + 1);
                                switch_color_rgb2yuv(rgb_color, &yuv_color);
                                switch_img_draw_pixel(img, x + j, y + i, &yuv_color);