PD#SWPL-32695
Problem:
aux data Size exceeds the allocated buff size.
Solution:
When the size exceeds the allocated size, set aux size to 0.
Verify:
U215
Change-Id: Ic15a60b95f8061c93a2ee7c96e23466e42a4d110
Signed-off-by: Gan Zhang <gan.zhang@amlogic.com>
__func__, pic, pic->aux_data_size,
aux_count, suffix_flag, dv_meta_flag);
}
+
+ if (aux_count > aux_size) {
+ hevc_print(hevc, 0,
+ "%s:aux_count(%d) is over size\n", __func__, aux_count);
+ aux_count = 0;
+ }
if (aux_size > 0 && aux_count > 0) {
int heads_size = 0;
int new_size;