diff options
author | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | 2016-04-20 16:06:51 +0530 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2016-05-10 10:35:27 -0700 |
commit | f38d14c5d9b3bd909dc2eecf7a0ac07dee4d75fe (patch) | |
tree | b1059c3b2cb5e9c3b9ee5b62dc3c276b75f91f3d | |
parent | ef3da4e69901b841b397b6e75a42a7c6c3ee32ca (diff) | |
download | android_external_libavc-f38d14c5d9b3bd909dc2eecf7a0ac07dee4d75fe.tar.gz android_external_libavc-f38d14c5d9b3bd909dc2eecf7a0ac07dee4d75fe.tar.bz2 android_external_libavc-f38d14c5d9b3bd909dc2eecf7a0ac07dee4d75fe.zip |
Decoder: Fix for handling invalid intra mode
Bug: 28165659
Change-Id: I2291a287c27291695f4f3d6e753b6bbd7dfd9e42
-rw-r--r-- | decoder/ih264d_process_intra_mb.c | 2 |
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]; |