Skip to content

Commit 60592ff

Browse files
committed
vcap/ndi: ndi_disp_convert_Y416_to_PA16 fix
1 parent 6eb6810 commit 60592ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/video_display/ndi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,12 @@ static void ndi_disp_convert_Y416_to_PA16(const struct video_frame *f, char *out
305305
for (unsigned int i = 0; i < f->tiles[0].height; ++i) {
306306
unsigned int width = f->tiles[0].width;
307307
OPTIMIZED_FOR (unsigned int j = 0; j < (width + 1) / 2; j += 1) {
308-
*out_a++ = in[0];
308+
*out_cb_cr++ = (in[0] + in[4]) / 2;
309309
*out_y++ = in[1];
310310
*out_cb_cr++ = (in[2] + in[6]) / 2;
311-
*out_a++ = in[4];
311+
*out_a++ = in[3];
312312
*out_y++ = in[5];
313-
*out_cb_cr++ = (in[3] + in[7]) / 2;
313+
*out_a++ = in[7];
314314
in += 8;
315315
}
316316
}

0 commit comments

Comments
 (0)