shithub: aacdec

Download patch

ref: fd7a5f8ba3b130319bc184ada17a77a08be5cd56
parent: d35cf8f24d55112451074424f8896e695ce9ee6b
author: Andrew Wesie <[email protected]>
date: Mon Oct 5 02:27:43 EDT 2020

Support implicit SBR signaling in frontend.

--- a/frontend/main.c
+++ b/frontend/main.c
@@ -872,7 +872,7 @@
         if (NeAACDecAudioSpecificConfig(mp4config.asc.buf, mp4config.asc.size, &mp4ASC) >= 0)
         {
             if (mp4ASC.frameLengthFlag == 1) framesize = 960;
-            if (mp4ASC.sbr_present_flag == 1) framesize *= 2;
+            if (mp4ASC.sbr_present_flag == 1 || mp4ASC.forceUpSampling) framesize *= 2;
         }
     }