History

This refine is to remove slice number limitation in the future. The changes contains: 1. add pNalLen in Structure SWelsEncoderOutput to store each nal length 2. rename iNalLengthInByte[MAX_NAL_UNITS_IN_LAYER] to pNalLengthInByte in Structure SLayerBSInfo, the pointer point to pNalLen, like pBSBuf point to pFrameBS.

ganyang committed 12 years ago

Commit c08c0f81 parent 3c4d1518 files · +34 −34Browse files

Showing the changes to test/api/encoder_test.cpp (1 of 8 files). Show all

Unified · Split

test/api/encoder_test.cpp+1−1
@@ -7,7 +7,7 @@ static void UpdateHashFromFrame(const SFrameBSInfo& info, SHA1Context* ctx) { · 6 unmodified lines
7 const SLayerBSInfo& layerInfo = info.sLayerInfo[i];7 const SLayerBSInfo& layerInfo = info.sLayerInfo[i];
8 int layerSize = 0;8 int layerSize = 0;
9 for (int j = 0; j < layerInfo.iNalCount; ++j) {9 for (int j = 0; j < layerInfo.iNalCount; ++j) {
10 layerSize += layerInfo.iNalLengthInByte[j];10 layerSize += layerInfo.pNalLengthInByte[j];
11 }11 }
12 SHA1Input(ctx, layerInfo.pBsBuf, layerSize);12 SHA1Input(ctx, layerInfo.pBsBuf, layerSize);
13 }13 }

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