Skip to content

Commit

Permalink
fixed out of bounds issues in hevc decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
elFarto committed May 8, 2024
1 parent 92b29ad commit 31d13b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hevc.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,12 @@ static void copyHEVCIQMatrix(NVContext *ctx, NVBuffer* buf, CUVIDPICPARAMS *picP
ppc->ScalingList16x16[i][j] = iq->ScalingList16x16[i][pos];

if (i < 2)
ppc->ScalingList32x32[i][j] = iq->ScalingList32x32[i * 3][pos];
ppc->ScalingList32x32[i][j] = iq->ScalingList32x32[i][pos];
}

ppc->ScalingListDCCoeff16x16[i] = iq->ScalingListDC16x16[i];
if (i < 2)
ppc->ScalingListDCCoeff32x32[i] = iq->ScalingListDC32x32[i * 3];
ppc->ScalingListDCCoeff32x32[i] = iq->ScalingListDC32x32[i];
}
}

Expand Down

0 comments on commit 31d13b7

Please sign in to comment.