Opened 5 years ago

Last modified 4 years ago

#800 closed defect

out of range vector access — at Initial Version

Reported by: bordes Owned by:
Priority: minor Milestone:
Component: VTM Version:
Keywords: Cc: ksuehring, XiangLi, fbossen, jvet@…

Description

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 (0)

Note: See TracTickets for help on using tickets.