Decoder: Fixed memory overflow in shared display mode. am: c3b026a87d am: 0183e8df10 am: 53b26e4caa am: 64df5835a4 am: f55fa2495d am: 01f26b3531 am: 8467cf1390 am: bc664e6fa7 am: 6c5f746f25 am: f8f4968473
am: 134620a49b
Change-Id: I439af220021b31b98a96d7f2f2e54c8576fca4c7
This commit is contained in:
commit
6b66cac7a8
1 changed files with 5 additions and 2 deletions
|
|
@ -1020,12 +1020,15 @@ WORD32 ih264d_get_next_display_field(dec_struct_t * ps_dec,
|
|||
buf = ps_dec->disp_bufs[i].buf[1];
|
||||
buf += ps_dec->disp_bufs[i].u4_ofst[1];
|
||||
pv_disp_op->s_disp_frm_buf.pv_u_buf = buf
|
||||
+ pic_buf->u2_crop_offset_uv;
|
||||
+ (pic_buf->u2_crop_offset_uv
|
||||
/ YUV420SP_FACTOR);
|
||||
|
||||
buf = ps_dec->disp_bufs[i].buf[2];
|
||||
buf += ps_dec->disp_bufs[i].u4_ofst[2];
|
||||
pv_disp_op->s_disp_frm_buf.pv_v_buf = buf
|
||||
+ pic_buf->u2_crop_offset_uv;
|
||||
+ (pic_buf->u2_crop_offset_uv
|
||||
/ YUV420SP_FACTOR);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue