summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarish Mahendrakar <harish.mahendrakar@ittiam.com>2016-04-20 16:06:51 +0530
committerJessica Wagantall <jwagantall@cyngn.com>2016-07-07 11:07:18 -0700
commitce128de39e172d5eb920d8b6137d011bcba97499 (patch)
tree5cc1dd5947c73555a1385377829f4bdca8e7369d
parent42e286f9bf8edbd2f1927b6db396bdb61e974242 (diff)
downloadandroid_external_libavc-ce128de39e172d5eb920d8b6137d011bcba97499.tar.gz
android_external_libavc-ce128de39e172d5eb920d8b6137d011bcba97499.tar.bz2
android_external_libavc-ce128de39e172d5eb920d8b6137d011bcba97499.zip
Decoder: Fix for handling invalid intra mode
Bug: 28165659 Ticket: CYNGNOS-3020 Change-Id: I2291a287c27291695f4f3d6e753b6bbd7dfd9e42 (cherry picked from commit f38d14c5d9b3bd909dc2eecf7a0ac07dee4d75fe)
-rw-r--r--decoder/ih264d_process_intra_mb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/decoder/ih264d_process_intra_mb.c b/decoder/ih264d_process_intra_mb.c
index dde2a7e..279ff87 100644
--- a/decoder/ih264d_process_intra_mb.c
+++ b/decoder/ih264d_process_intra_mb.c
@@ -1242,6 +1242,7 @@ WORD32 ih264d_process_intra_mb(dec_struct_t * ps_dec,
+ (pu1_rem_intra4x4_pred_mode[u1_cur_sub_block]
>= i1_intra_pred);
}
+ i1_intra_pred = CLIP3(0, 8, i1_intra_pred);
{
UWORD8 u1_err_code = pu1_intra_err_codes[i1_intra_pred];
@@ -1650,6 +1651,7 @@ WORD32 ih264d_process_intra_mb(dec_struct_t * ps_dec,
+ (pu1_rem_intra4x4_pred_mode[u1_sub_mb_num]
>= i1_intra_pred);
}
+ i1_intra_pred = CLIP3(0, 8, i1_intra_pred);
{
UWORD8 u1_err_code = pu1_intra_err_codes[i1_intra_pred];