History

Merge pull request #2363 from sijchen/fix_free5

[Encoder] add input parameter check as protection for an encoder interface

ruil2 committed 10 years ago

Commit de1a70d2 parents 4537682 855d1cf1 file · +4 −0Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+4−0
@@ -3427,6 +3427,10 @@ int32_t ForceCodingIDR (sWelsEncCtx* pCtx) { · 3426 unmodified lines
3427}3427}
3428 3428
3429int32_t WelsEncoderEncodeParameterSets (sWelsEncCtx* pCtx, void* pDst) {3429int32_t WelsEncoderEncodeParameterSets (sWelsEncCtx* pCtx, void* pDst) {
3430 if (NULL == pCtx || NULL == pDst) {
3431 return ENC_RETURN_UNEXPECTED;
3432 }
3433
3430 SFrameBSInfo* pFbi = (SFrameBSInfo*)pDst;3434 SFrameBSInfo* pFbi = (SFrameBSInfo*)pDst;
3431 SLayerBSInfo* pLayerBsInfo = &pFbi->sLayerInfo[0];3435 SLayerBSInfo* pLayerBsInfo = &pFbi->sLayerInfo[0];
3432 int32_t iCountNal = 0;3436 int32_t iCountNal = 0;

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