Merge "mvc: fixed an integer overflow in max_disp_seq computation" am: 9c75f6b991 am: 67e419fad9 am: aaaa158541
Original change: 2202376
Change-Id: Id3313343e3d1391d884a41d46b006f06325643da
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
6700f6d281
1 changed files with 3 additions and 2 deletions
|
|
@ -194,8 +194,9 @@ void imvcd_modulate_max_disp_seq(dec_struct_t *ps_view_ctxt)
|
|||
{
|
||||
WORD64 i8_temp;
|
||||
|
||||
i8_temp = ps_view_ctxt->i4_prev_max_display_seq + ps_view_ctxt->i4_max_poc +
|
||||
ps_view_ctxt->u1_max_dec_frame_buffering + 1;
|
||||
i8_temp = ((WORD64) ps_view_ctxt->i4_prev_max_display_seq) +
|
||||
((WORD64) ps_view_ctxt->i4_max_poc) +
|
||||
((WORD64) ps_view_ctxt->u1_max_dec_frame_buffering) + 1ll;
|
||||
|
||||
ps_view_ctxt->i4_prev_max_display_seq = IS_OUT_OF_RANGE_S32(i8_temp) ? 0 : ((WORD32) i8_temp);
|
||||
ps_view_ctxt->i4_max_poc = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue