Ticket #118: fix_missing_braces.diff

File fix_missing_braces.diff, 2.7 KB (added by jsauer, 5 years ago)

patch for missing braces

  • source/App/utils/360ConvertApp/360ConvertAppCfg.cpp

     
    113113
    114114TApp360ConvertCfg::~TApp360ConvertCfg()
    115115{
    116   if(m_pchInputFile) free(m_pchInputFile); m_pchInputFile= nullptr;
    117   if(m_pchOutputFile) free(m_pchOutputFile); m_pchOutputFile= nullptr;
    118   if(m_pchRefFile) free(m_pchRefFile); m_pchRefFile= nullptr;
    119   if(m_pchSphData) free(m_pchSphData); m_pchSphData= nullptr;
    120   if(m_pchVPortFile) free(m_pchVPortFile); m_pchVPortFile= nullptr;
     116  if(m_pchInputFile) {free(m_pchInputFile); m_pchInputFile= nullptr;}
     117  if(m_pchOutputFile) {free(m_pchOutputFile); m_pchOutputFile= nullptr;}
     118  if(m_pchRefFile) {free(m_pchRefFile); m_pchRefFile= nullptr;}
     119  if(m_pchSphData) {free(m_pchSphData); m_pchSphData= nullptr;}
     120  if(m_pchVPortFile) {free(m_pchVPortFile); m_pchVPortFile= nullptr;}
    121121#if SVIDEO_DYNAMIC_VIEWPORT_PSNR
    122   if(m_pchDynVPortFile) free(m_pchDynVPortFile); m_pchDynVPortFile= nullptr;
     122  if(m_pchDynVPortFile) {free(m_pchDynVPortFile); m_pchDynVPortFile= nullptr;}
    123123#endif
    124   if(m_pchSpherePointsFile) free(m_pchSpherePointsFile); m_pchSpherePointsFile= nullptr;
     124  if(m_pchSpherePointsFile) {free(m_pchSpherePointsFile); m_pchSpherePointsFile= nullptr;}
    125125}
    126126
    127127Void TApp360ConvertCfg::create()
     
    168168  in>>sFPStruct.rows;
    169169  in>>sFPStruct.cols;
    170170  for ( Int i = 0; i < sFPStruct.rows; i++ )
     171  {
    171172    for(Int j=0; j<sFPStruct.cols; j++)
    172173    {
    173174      in>>sFPStruct.faces[i][j].id;
    174175      in>>sFPStruct.faces[i][j].rot;
    175176    }
    176     return in;
     177  }
     178  return in;
    177179}
    178180static inline std::istringstream &operator>>(std::istringstream &in, ViewPortSettings &vp)     //input
    179181{
  • source/Lib/Lib360/TWSPSNRMetricCalc.cpp

     
    12931293    }
    12941294    //weights for the entire frame_C
    12951295    for(Int i=0;i<4;i++)
     1296    {
    12961297      for (Int x=0;x<(iFaceWidth>>iScaleX);x++)
     1298      {
    12971299        for (Int y=0;y<(iFaceHeight>>iScaleY);y++)
    12981300        {
    12991301          if(sfabs(x*(1<<iScaleX)+dChromaOffset[0]+0.5-iFaceWidth/2) < (y*(1<<iScaleY)+dChromaOffset[1]+0.5)/sqrt(3.0))
     
    13011303            m_fOctaWeight_C[y*(iwidth >> iScaleX)+2*i+1+i*(iFaceWidth>>iScaleX)+x]=fWeightRotZero_C[(iFaceWidth>>iScaleX)*y+x];
    13021304          }
    13031305        }
     1306      }
     1307    }
    13041308
    13051309        for(Int i=-1;i<4;i++)
    13061310          //for(Int x=0;x<m_iCodingFaceWidth;x++)             //WS-PSNR checking;