audio: Fix regression of libfaad. [1/1]
PD#SWPL-172603
Problem:
Fix regression issues with coverity changes: sending main and ad data
to the faad decoder at the same time, which causes decoding confusion.
Solution:
Static variables make functions non-reentrant,
delete static variables and use heap variables instead;
This is a supplement to the following cl:
https://scgit.amlogic.com/#/c/453144.
Verify:
t5w.
Change-Id: Iabb446e06aee41825cf60151c3b8862e28e29eda
Signed-off-by: yuliang.hu <yuliang.hu@amlogic.com>
diff --git a/libfaad/structs.h b/libfaad/structs.h
index 4d99267..0bc4a1b 100644
--- a/libfaad/structs.h
+++ b/libfaad/structs.h
@@ -82,6 +82,10 @@
#ifdef PROFILE
int64_t cycles;
#endif
+ void *process_buf;
+ int process_buf_size;
+ void *process_buf2;
+ int process_buf_size2;
} fb_info;
typedef struct {
@@ -509,6 +513,8 @@
short dec_buffer[DEC_BUF_SIZE];
short output_buffer[OUT_BUF_SIZE];
unsigned char temp_bufer[TMP_BUF_SIZE];
+ element *process_buf;
+ int process_buf_size;
} NeAACDecStruct;