Skip to content

Commit 8260aef

Browse files
SABITHSAHEBram-mohan
authored andcommitted
fix oob chroma source read in ihevcd_fmt_conv_422sp_to_420p
1 parent a3336a2 commit 8260aef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

decoder/ihevcd_fmt_conv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,8 @@ void ihevcd_fmt_conv_422sp_to_420p(UWORD8 *pu1_y_src,
680680
{
681681
for(WORD32 j = 0; j < wd; j += 2)
682682
{
683-
pu1_u_dst[j / 2] = pu1_uv_src[j * 2];
684-
pu1_v_dst[j / 2] = pu1_uv_src[j * 2 + 1];
683+
pu1_u_dst[j / 2] = pu1_uv_src[j];
684+
pu1_v_dst[j / 2] = pu1_uv_src[j + 1];
685685
}
686686
pu1_u_dst += dst_uv_strd;
687687
pu1_v_dst += dst_uv_strd;

0 commit comments

Comments
 (0)