summaryrefslogtreecommitdiffstats
path: root/decoder/ih264d_parse_pslice.c
diff options
context:
space:
mode:
authorHarish Mahendrakar <harish.mahendrakar@ittiam.com>2017-01-16 14:43:42 +0530
committerSean McCreary <mccreary@mcwest.org>2017-04-05 19:31:53 -0600
commit54bd23ea0824f49d69833de44029e7df1dae436f (patch)
treea7102e5a1241fcc606fe2962c85ff33845dca8ee /decoder/ih264d_parse_pslice.c
parent36a82ac79d2409bb629a6482758bf4fd00906439 (diff)
downloadandroid_external_libavc-54bd23ea0824f49d69833de44029e7df1dae436f.tar.gz
android_external_libavc-54bd23ea0824f49d69833de44029e7df1dae436f.tar.bz2
android_external_libavc-54bd23ea0824f49d69833de44029e7df1dae436f.zip
Decoder: Fixed initialization of first_slice_in_picreplicant-6.0-0001
To handle some errors, first_slice_in_pic was being set to 2. This is now cleaned up and first_slice_in_pic is set to 1 only once per pic. This will ensure picture level initializations are done only once even in case of error clips Bug: 33717589 Bug: 33551775 Bug: 33716442 Bug: 33677995 AOSP-Change-Id: If341436b3cbaa724017eedddd88c2e6fac36d8ba CVE-2017-0555 Change-Id: Ifecf8e8cf6a257eaffdc8411e6af44962b554d72 (cherry picked from commit 0b23c81c3dd9ec38f7e6806a3955fed1925541a0)
Diffstat (limited to 'decoder/ih264d_parse_pslice.c')
-rw-r--r--decoder/ih264d_parse_pslice.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/decoder/ih264d_parse_pslice.c b/decoder/ih264d_parse_pslice.c
index 171ed16..ca3f80b 100644
--- a/decoder/ih264d_parse_pslice.c
+++ b/decoder/ih264d_parse_pslice.c
@@ -1566,7 +1566,6 @@ WORD32 ih264d_mark_err_slice_skip(dec_struct_t * ps_dec,
}
}
}
- ps_dec->u4_first_slice_in_pic = 0;
}
else
{