Ticket #1361: profilePresentFlag.patch

File profilePresentFlag.patch, 1.8 KB (added by Vadim, 10 years ago)
  • Lib/TLibDecoder/TDecCAVLC.cpp

     
    14891489
    14901490  for (Int i = 0; i < maxNumSubLayersMinus1; i++)
    14911491  {
    1492     if(profilePresentFlag)
    1493     {
    1494       READ_FLAG( uiCode, "sub_layer_profile_present_flag[i]" ); rpcPTL->setSubLayerProfilePresentFlag(i, uiCode);
    1495     }
     1492    READ_FLAG( uiCode, "sub_layer_profile_present_flag[i]" ); rpcPTL->setSubLayerProfilePresentFlag(i, uiCode);
    14961493    READ_FLAG( uiCode, "sub_layer_level_present_flag[i]"   ); rpcPTL->setSubLayerLevelPresentFlag  (i, uiCode);
    14971494  }
    14981495
     
    15071504
    15081505  for(Int i = 0; i < maxNumSubLayersMinus1; i++)
    15091506  {
    1510     if( profilePresentFlag && rpcPTL->getSubLayerProfilePresentFlag(i) )
     1507    if( rpcPTL->getSubLayerProfilePresentFlag(i) )
    15111508    {
    15121509      parseProfileTier(rpcPTL->getSubLayerPTL(i));
    15131510    }
  • Lib/TLibEncoder/TEncCavlc.cpp

     
    10511051
    10521052  for (Int i = 0; i < maxNumSubLayersMinus1; i++)
    10531053  {
    1054     if(profilePresentFlag)
    1055     {
    1056       WRITE_FLAG( pcPTL->getSubLayerProfilePresentFlag(i), "sub_layer_profile_present_flag[i]" );
    1057     }
    1058 
     1054    WRITE_FLAG( pcPTL->getSubLayerProfilePresentFlag(i), "sub_layer_profile_present_flag[i]" );
    10591055    WRITE_FLAG( pcPTL->getSubLayerLevelPresentFlag(i),   "sub_layer_level_present_flag[i]" );
    10601056  }
    10611057
     
    10691065
    10701066  for(Int i = 0; i < maxNumSubLayersMinus1; i++)
    10711067  {
    1072     if( profilePresentFlag && pcPTL->getSubLayerProfilePresentFlag(i) )
     1068    if( pcPTL->getSubLayerProfilePresentFlag(i) )
    10731069    {
    10741070      codeProfileTier(pcPTL->getSubLayerPTL(i));  // sub_layer_...
    10751071    }