Changeset 364 in SHVCSoftware for branches/SHM-3.1-dev/source/App


Ignore:
Timestamp:
26 Aug 2013, 17:45:03 (11 years ago)
Author:
seregin
Message:

fix compile warning, patch provided by Christophe Gisquet <Christophe.Gisquet@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-3.1-dev/source/App/TAppDownConvert/TAppDownConvert.cpp

    r340 r364  
    270270  FILE * outfile;
    271271
    272   int M,N;
    273   int ratio;
     272  int M = -1 ,N = -1;
     273  int ratio = -1;
    274274  int Frames=0;
    275275  int totalFrames=0;
     
    326326    return -1;
    327327  }
    328   if ( ratio > 1 || ratio < 0)
    329   {
     328
     329  switch( ratio )
     330  {
     331  default:
    330332    printf("\ndown sampling parameter %d is not supported (0: 2x downsampling, 1: 1.5x downsampling)\n", ratio);
    331333    return -1;
    332   }
    333 
    334   if (ratio==0)
    335   {
     334  case 0:
    336335    M=4;
    337336    N=8;
    338   }
    339   else if (ratio==1)
    340   {
     337    break;
     338  case 1:
    341339    M=8;
    342340    N=12;
     341    break;
    343342  }
    344343
Note: See TracChangeset for help on using the changeset viewer.