shithub: openh264

Download patch

ref: ed8c0ba105ccbf769729735d90cf0c1e01ac734c
parent: 087636ba301c1a187a2ebd58302ac337d55f0534
parent: debb01e5c38437116a5e491710257fd6f2e1d0e7
author: sijchen <[email protected]>
date: Tue Jul 13 05:15:50 EDT 2021

Merge pull request #3405 from vacing/feature-diff-idc-for-tl4

modify nal_ref_idc from 3 to 2 for level 1 when output 4 temporal layers

--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -3616,6 +3616,8 @@
       eNalRefIdc = NRI_PRI_LOWEST;
     else if (1 + iCurTid == iDecompositionStages)
       eNalRefIdc = NRI_PRI_LOW;
+    else if (2 + iCurTid == iDecompositionStages)
+      eNalRefIdc = NRI_PRI_HIGH;
     else // more details for other temporal layers?
       eNalRefIdc = NRI_PRI_HIGHEST;
     pCtx->eNalType = eNalType;