| 4 | #include <string> |
| 5 | |
| 6 | static void UpdateHashFromFrame (const SFrameBSInfo& info, SHA1Context* ctx) { |
| 7 | for (int i = 0; i < info.iLayerNum; ++i) { |
| 8 | const SLayerBSInfo& layerInfo = info.sLayerInfo[i]; |
| 9 | int layerSize = 0; |
| 10 | for (int j = 0; j < layerInfo.iNalCount; ++j) { |
| 11 | layerSize += layerInfo.pNalLengthInByte[j]; |
| 12 | } |
| 13 | SHA1Input (ctx, layerInfo.pBsBuf, layerSize); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | class EncoderInitTest : public ::testing::Test, public BaseEncoderTest { |
| 18 | public: |
no test coverage detected