add ffmpeg bug fix

Signed-off-by: gao_ziyu <gaoziyu@huawei.com>
This commit is contained in:
gao_ziyu 2024-08-16 15:39:09 +08:00
parent ce2d85904e
commit deeb96cd5b

View File

@ -101,9 +101,9 @@ const int *sws_getCoefficients(int colorspace)
#define PUTRGBA(dst, ysrc, asrc, i, s) \
Y = ysrc[2 * i]; \
dst[2 * i] = r[Y] + g[Y] + b[Y] + (asrc[2 * i] << s); \
dst[2 * i] = r[Y] + g[Y] + b[Y] + ((uint32_t)asrc[2 * i] << s); \
Y = ysrc[2 * i + 1]; \
dst[2 * i + 1] = r[Y] + g[Y] + b[Y] + (asrc[2 * i + 1] << s);
dst[2 * i + 1] = r[Y] + g[Y] + b[Y] + ((uint32_t)asrc[2 * i + 1] << s);
#define PUTRGB48(dst, src, i) \
Y = src[ 2 * i]; \