From: Andrey Volk Date: Sat, 15 Feb 2020 21:23:40 +0000 (+0400) Subject: [Core] scan-build: Fix "Result of operation is garbage or undefined" in switch_color_... X-Git-Tag: v1.10.3^2~154^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F372%2Fhead;p=thirdparty%2Ffreeswitch.git [Core] scan-build: Fix "Result of operation is garbage or undefined" in switch_color_yuv2rgb() --- diff --git a/src/switch_core_video.c b/src/switch_core_video.c index f7352bb0f9..76232b40f0 100644 --- a/src/switch_core_video.c +++ b/src/switch_core_video.c @@ -1614,7 +1614,7 @@ static inline void switch_img_get_rgb_pixel(switch_image_t *img, switch_rgb_colo if (x < 0 || y < 0 || x >= img->d_w || y >= img->d_h) return; if (img->fmt == SWITCH_IMG_FMT_I420) { - switch_yuv_color_t yuv; + switch_yuv_color_t yuv = {0}; switch_img_get_yuv_pixel(img, &yuv, x, y); switch_color_yuv2rgb(&yuv, rgb);