[Core] scan-build: Fix "Result of operation is garbage or undefined" in switch_color_yuv2rgb()

This commit is contained in:
Andrey Volk 2020-02-16 01:23:40 +04:00
parent 9f2d044ca5
commit 8cee6230e3
1 changed files with 1 additions and 1 deletions

View File

@ -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);