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
935 m_uiCountFrameNum, m_iCspInternal);935 m_uiCountFrameNum, m_iCspInternal);
936#endif//REC_FRAME_COUNT936#endif//REC_FRAME_COUNT
937 SBitrateInfo*pInfo = (static_cast<SBitrateInfo *>(pOption));937 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))
939 return cmInitParaError;939 return cmInitParaError;
940 if(pInfo->iLayer == SPATIAL_LAYER_ALL){940 if(pInfo->iLayer == SPATIAL_LAYER_ALL){
941 pInfo->iBitrate = m_pEncContext->pSvcParam->iTargetBitrate;941 pInfo->iBitrate = m_pEncContext->pSvcParam->iTargetBitrate;
@@ -950,7 +950,7 @@ int CWelsH264SVCEncoder::GetOption (ENCODER_OPTION eOptionId, void* pOption) { · 8 unmodified lines
950 m_uiCountFrameNum, m_iCspInternal);950 m_uiCountFrameNum, m_iCspInternal);
951#endif//REC_FRAME_COUNT951#endif//REC_FRAME_COUNT
952 SBitrateInfo*pInfo = (static_cast<SBitrateInfo *>(pOption));952 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))
954 return cmInitParaError;954 return cmInitParaError;
955 if(pInfo->iLayer == SPATIAL_LAYER_ALL){955 if(pInfo->iLayer == SPATIAL_LAYER_ALL){
956 pInfo->iBitrate = m_pEncContext->pSvcParam->iMaxBitrate;956 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