History

fix a nal generation for simulcast avc and add nal-type check for simulcast avc UT

Sijia Chen committed 11 years ago

Commit 943981a1 parent bea361a2 files · +12 −2Browse files

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

Unified · Split

test/api/encode_decode_api_test.cpp+3−0
@@ -3210,6 +3210,9 @@ TEST_F (EncodeDecodeTestAPI, SimulcastAVC) { · 3209 unmodified lines
32103210 for (int iLayer = 0; iLayer < info.iLayerNum; ++iLayer) {
32113211 iLayerLen = 0;
32123212 const SLayerBSInfo& layerInfo = info.sLayerInfo[iLayer];
3213+ const int kiFirstNalType = ((* (layerInfo.pBsBuf + 4)) & 0x1f);
3214+ ASSERT_TRUE ((kiFirstNalType == NAL_SPS) || (kiFirstNalType == NAL_PPS) || (kiFirstNalType == NAL_SLICE)
3215+ || (kiFirstNalType == NAL_SLICE_IDR) || (kiFirstNalType == NAL_SEI));
32133216 for (int iNal = 0; iNal < layerInfo.iNalCount; ++iNal) {
32143217 iLayerLen += layerInfo.pNalLengthInByte[iNal];
32153218 }

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