Ticket #1361: profilePresentFlag.patch
File profilePresentFlag.patch, 1.8 KB (added by Vadim, 10 years ago) |
---|
-
Lib/TLibDecoder/TDecCAVLC.cpp
1489 1489 1490 1490 for (Int i = 0; i < maxNumSubLayersMinus1; i++) 1491 1491 { 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); 1496 1493 READ_FLAG( uiCode, "sub_layer_level_present_flag[i]" ); rpcPTL->setSubLayerLevelPresentFlag (i, uiCode); 1497 1494 } 1498 1495 … … 1507 1504 1508 1505 for(Int i = 0; i < maxNumSubLayersMinus1; i++) 1509 1506 { 1510 if( profilePresentFlag &&rpcPTL->getSubLayerProfilePresentFlag(i) )1507 if( rpcPTL->getSubLayerProfilePresentFlag(i) ) 1511 1508 { 1512 1509 parseProfileTier(rpcPTL->getSubLayerPTL(i)); 1513 1510 } -
Lib/TLibEncoder/TEncCavlc.cpp
1051 1051 1052 1052 for (Int i = 0; i < maxNumSubLayersMinus1; i++) 1053 1053 { 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]" ); 1059 1055 WRITE_FLAG( pcPTL->getSubLayerLevelPresentFlag(i), "sub_layer_level_present_flag[i]" ); 1060 1056 } 1061 1057 … … 1069 1065 1070 1066 for(Int i = 0; i < maxNumSubLayersMinus1; i++) 1071 1067 { 1072 if( p rofilePresentFlag && pcPTL->getSubLayerProfilePresentFlag(i) )1068 if( pcPTL->getSubLayerProfilePresentFlag(i) ) 1073 1069 { 1074 1070 codeProfileTier(pcPTL->getSubLayerPTL(i)); // sub_layer_... 1075 1071 }