Skip to content

Commit 4820b4d

Browse files
committed
vc_copylineVUYAtoRGB fix
BPP(RGB) = 3
1 parent 7aa204d commit 4820b4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pixfmt_conv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2701,7 +2701,7 @@ vc_copylineVUYAtoRGB(unsigned char *__restrict dst,
27012701
S_DEPTH = 8,
27022702
};
27032703
const struct color_coeffs cfs = *get_color_coeffs(CS_DFL, S_DEPTH);
2704-
OPTIMIZED_FOR (int x = 0; x < dst_len; x += 4) {
2704+
OPTIMIZED_FOR (int x = 0; x < dst_len; x += 3) {
27052705
comp_type_t v = *src++ - (1 << (S_DEPTH - 1));
27062706
comp_type_t u = *src++ - (1 << (S_DEPTH - 1));
27072707
comp_type_t y = cfs.y_scale * (*src++ - (1 << (S_DEPTH - 4)));

0 commit comments

Comments
 (0)