shithub: aacdec

Download patch

ref: 1b7910fedc996e71e37dac9cd1de05f727ec9b58
parent: da52b8d1570c8bdd83d19ad0dc2dd4ce9d81aff5
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Sat Sep 16 06:35:24 EDT 2017

fixed RNG bug in pns.c

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+	- PNS bug fixed
 	- New MP4 input module
 	- NeAACDecGetVersion: 
 		new api function to get version and copyright strings
--- a/libfaad/pns.c
+++ b/libfaad/pns.c
@@ -212,8 +212,8 @@
                     offs = ics_left->swb_offset[sfb];
                     size = min(ics_left->swb_offset[sfb+1], ics_left->swb_offset_max) - offs;
 
-                    r1_dep = __r1;
-                    r2_dep = __r2;
+                    r1_dep = *__r1;
+                    r2_dep = *__r2;
 
                     /* Generate random vector */
                     gen_rand_vector(&spec_left[(group*nshort)+offs],