[Encoder] fix idr_id: idr_id should be adding regardless of the sps strategy
Showing the changes to test/api/encode_decode_api_test.cpp (1 of 6 files). Show all
Unified · Split
| @@ -561,7 +561,7 @@ TEST_P (EncodeDecodeTestAPI, GetOptionIDR) { · 560 unmodified lines | ||
| 561 | 561 | EncodeOneFrame (0); |
| 562 | 562 | |
| 563 | 563 | if (info.eFrameType == videoFrameTypeIDR) { |
| 564 | − iEncCurIdrPicId = (iSpsPpsIdAddition == 0) ? 0 : (iEncCurIdrPicId + 1); | |
| 564 | + iEncCurIdrPicId = iEncCurIdrPicId + 1; | |
| 565 | 565 | } |
| 566 | 566 | //decoding after each encoding frame |
| 567 | 567 | int len = 0; |
| @@ -2321,9 +2321,9 @@ const uint32_t kiFrameRate = 12; //DO NOT CHANGE! · 1753 unmodified lines | ||
| 2321 | 2321 | const uint32_t kiFrameNum = 100; //DO NOT CHANGE! |
| 2322 | 2322 | const uint32_t kiMaxBsSize = 10000000; //DO NOT CHANGE! |
| 2323 | 2323 | const char* pHashStr[] = { //DO NOT CHANGE! |
| 2324 | − "c58322f886a3ba958c6f60b46b98f67b5d860866", | |
| 2325 | − "f2799e1e5f6e33c6274f4e1f6273c721475492d0", | |
| 2326 | − "8f0fafeaa2746e04d42fb17104efb61c9dbd1a6f" | |
| 2324 | + "be28b28101023f92b0c994fc63531890d28307d0", | |
| 2325 | + "3be320b5af1164cb88519b214e4698f11b3e4eb1", | |
| 2326 | + "4ed8aa9a107119ff7b1a8821dc757ccc343ffd0b" | |
| 2327 | 2327 | }; |
| 2328 | 2328 | |
| 2329 | 2329 | class DecodeParseAPI : public EncodeDecodeTestBase { |