]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_core_video.c
authorAndrey Volk <andywolk@gmail.com>
Fri, 12 Jul 2019 16:41:19 +0000 (20:41 +0400)
committerAndrey Volk <andywolk@gmail.com>
Mon, 15 Jul 2019 19:41:43 +0000 (23:41 +0400)
src/switch_core_video.c

index d199df5ccd2ba0d47413ab94cac3835fbd377d60..ba9d18e9e79a2cb9aab13b7352cf79d929fe8452 100644 (file)
@@ -635,7 +635,7 @@ SWITCH_DECLARE(void) switch_img_rotate_copy(switch_image_t *img, switch_image_t
        if (img->fmt != SWITCH_IMG_FMT_I420) abort();
 
        if (*new_img != NULL) {
-               if (img->fmt != (*new_img)->fmt || img->d_w != (*new_img)->d_w || img->d_h != (*new_img)->d_w) {
+               if (img->fmt != (*new_img)->fmt || img->d_w != (*new_img)->d_w || img->d_h != (*new_img)->d_h) {
                        switch_img_free(new_img);
                }
        }