summaryrefslogtreecommitdiffstats
path: root/decoder
diff options
context:
space:
mode:
authorRitu Baldwa <ritu.baldwa@ittiam.com>2018-01-16 13:41:30 +0530
committerTim Schumacher <timschumi@gmx.de>2018-04-06 19:50:13 +0200
commit7ba97df6f72df14c66637e9d73a64f286fb7ee1e (patch)
tree629c8d59d93a94214d19393239ae22dd8341f3ae /decoder
parent7d18d3e1405e136ef7d27d0bdae500d96e620d1b (diff)
downloadandroid_external_libavc-7ba97df6f72df14c66637e9d73a64f286fb7ee1e.tar.gz
android_external_libavc-7ba97df6f72df14c66637e9d73a64f286fb7ee1e.tar.bz2
android_external_libavc-7ba97df6f72df14c66637e9d73a64f286fb7ee1e.zip
Decoder: Fixed reset values in parse sps.
Memset to zero whenever new sps occurs. Bug: 70897394 Test: manual Change-Id: I5936fd55265ff8ad2b275a72b175cdb540bb7933 (cherry picked from commit 9c32ad7126890dfaa79fd29affaaf07de335fa3a)
Diffstat (limited to 'decoder')
-rw-r--r--decoder/ih264d_parse_headers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/decoder/ih264d_parse_headers.c b/decoder/ih264d_parse_headers.c
index 2314003..b669331 100644
--- a/decoder/ih264d_parse_headers.c
+++ b/decoder/ih264d_parse_headers.c
@@ -30,6 +30,8 @@
* \author AI
**************************************************************************
*/
+#include <string.h>
+
#include "ih264_typedefs.h"
#include "ih264_macros.h"
#include "ih264_platform_macros.h"
@@ -564,6 +566,8 @@ WORD32 ih264d_parse_sps(dec_struct_t *ps_dec, dec_bit_stream_t *ps_bitstrm)
/*--------------------------------------------------------------------*/
ps_seq = ps_dec->pv_scratch_sps_pps;
+ memset(ps_seq, 0, sizeof(dec_seq_params_t));
+
if(ps_dec->i4_header_decoded & 1)
{
*ps_seq = *ps_dec->ps_cur_sps;