Opened 6 years ago
Last modified 5 years ago
#800 closed defect
out of range vector access — at Version 1
| Reported by: | bordes | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | VTM | Version: | |
| Keywords: | Cc: | ksuehring, XiangLi, fbossen, jvet@… | 
Description (last modified by ksuehring)
In WeightPredAnalysis.cpp, in xCalcHistDistortion()
replace:
  for (int i = 0; i <= numElements; i++)
  {
    distortion += (Distortion)(abs(histogram0[i] - histogram1[i]));
  }
by:
  for (int i = 0; i < numElements; i++)
  {
    distortion += (Distortion)(abs(histogram0[i] - histogram1[i]));
  }
    Note: See TracTickets for help on using tickets.