Opened 3 years ago

Closed 3 years ago

#1483 closed defect (fixed)

Missing initialization of lastPaletteSize[i]

Reported by: swong10 Owned by:
Priority: major Milestone:
Component: HM SCC Version:
Keywords: Cc: lidong.xu@…, samuel.wong@…, jct-vc@…, iole@…

Description

missing initialization of lastPaletteSize[i] to 0 when (pps_palette_predictor_initializer_present_flag==1 && pps_num_palette_predictor_initializer==0)

HM Decoder 16.15_SCM8.4

TDecSlice.cpp --> Void TDecSlice::xSetPredFromPPS()

if( num )
{

for(int i=0; i<3; i++)
{

lastPaletteSize[i] = num;

memcpy(lastPalette[i], pcPPS->getPpsScreenExtension().getPalettePred(i), num*sizeof(Pel));

}

}

should change to

for(int i=0; i<3; i++)

{

lastPaletteSize[i] = num;

if (num)

memcpy(lastPalette[i], pcPPS->getPpsScreenExtension().getPalettePred(i), num*sizeof(Pel));

}

Change History (2)

comment:1 Changed 3 years ago by iole_moccagatta

  • Cc iole@… added

comment:2 Changed 3 years ago by libin

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r4936.

Note: See TracTickets for help on using tickets.

This list contains all users that will be notified about changes made to this ticket.

These roles will be notified: Reporter, Owner, Subscriber, Participant

  • Bin Li(Participant)
  • Iole Moccagatta(Subscriber, Participant)
  • jct-vc@…(Subscriber)
  • karl.sharman@…(Always)
  • Karsten Suehring(Always)
  • lidong.xu@…(Subscriber)
  • Samuel Wong(Reporter, Subscriber)