Opened 5 years ago

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

Change history (1)

comment:1 Changed 5 years ago by ksuehring

  • Description modified (diff)
Note: See TracTickets for help on using tickets.