Opened 4 years ago

Closed 4 years ago

#800 closed defect (fixed)

out of range vector access

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]));
  }

Change history (2)

comment:1 Changed 4 years ago by ksuehring

  • Description modified (diff)

comment:2 Changed 4 years ago by fbossen

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.