History

fix the GetOption: bit rate part

sijchen committed 12 years ago

Commit 736a6751 parent 3f2ea771 file · +2 −2Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 1 file). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+2−2
@@ -935,7 +935,7 @@ int CWelsH264SVCEncoder::GetOption (ENCODER_OPTION eOptionId, void* pOption) { · 934 unmodified lines
935935 m_uiCountFrameNum, m_iCspInternal);
936936 #endif//REC_FRAME_COUNT
937937 SBitrateInfo*pInfo = (static_cast<SBitrateInfo *>(pOption));
938− if((pInfo->iLayer!=SPATIAL_LAYER_ALL)||(pInfo->iLayer!=SPATIAL_LAYER_0)||(pInfo->iLayer!=SPATIAL_LAYER_1)||(pInfo->iLayer!=SPATIAL_LAYER_2)||(pInfo->iLayer!=SPATIAL_LAYER_3))
938+ if((pInfo->iLayer!=SPATIAL_LAYER_ALL)&&(pInfo->iLayer!=SPATIAL_LAYER_0)&&(pInfo->iLayer!=SPATIAL_LAYER_1)&&(pInfo->iLayer!=SPATIAL_LAYER_2)&&(pInfo->iLayer!=SPATIAL_LAYER_3))
939939 return cmInitParaError;
940940 if(pInfo->iLayer == SPATIAL_LAYER_ALL){
941941 pInfo->iBitrate = m_pEncContext->pSvcParam->iTargetBitrate;
@@ -950,7 +950,7 @@ int CWelsH264SVCEncoder::GetOption (ENCODER_OPTION eOptionId, void* pOption) { · 8 unmodified lines
950950 m_uiCountFrameNum, m_iCspInternal);
951951 #endif//REC_FRAME_COUNT
952952 SBitrateInfo*pInfo = (static_cast<SBitrateInfo *>(pOption));
953− if((pInfo->iLayer!=SPATIAL_LAYER_ALL)||(pInfo->iLayer!=SPATIAL_LAYER_0)||(pInfo->iLayer!=SPATIAL_LAYER_1)||(pInfo->iLayer!=SPATIAL_LAYER_2)||(pInfo->iLayer!=SPATIAL_LAYER_3))
953+ if((pInfo->iLayer!=SPATIAL_LAYER_ALL)&&(pInfo->iLayer!=SPATIAL_LAYER_0)&&(pInfo->iLayer!=SPATIAL_LAYER_1)&&(pInfo->iLayer!=SPATIAL_LAYER_2)&&(pInfo->iLayer!=SPATIAL_LAYER_3))
954954 return cmInitParaError;
955955 if(pInfo->iLayer == SPATIAL_LAYER_ALL){
956956 pInfo->iBitrate = m_pEncContext->pSvcParam->iMaxBitrate;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t