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/decode_encode_test.cpp (1 of 8 files). Show all

Unified · Split

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

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