PD#SWPL-27638
Problem:
When the width of the video file is 4096,
it cannot be played due to the total MB was
incorrectly calculated.
Solution:
Modify the logic so that the correct calculations MB
to solve the problem
Verify:
U215
Change-Id: Iccc116705b0d6a3a1c580162e7e2a5f577afe063
Signed-off-by: Peng yixin <yixin.peng@amlogic.com>
struct StorablePicture *p = p_H264_Dpb->mVideo.dec_picture;
unsigned mby_mbx = READ_VREG(MBY_MBX);
unsigned mb_total = (hw->seq_info2 >> 8) & 0xffff;
- unsigned decode_mb_count =
- ((mby_mbx & 0xff) * (hw->seq_info2 & 0xff) +
+ unsigned mb_width = hw->seq_info2 & 0xff;
+ unsigned decode_mb_count;
+ if (!mb_width && mb_total) /*for 4k2k*/
+ mb_width = 256;
+ decode_mb_count = ((mby_mbx & 0xff) * mb_width +
(((mby_mbx >> 8) & 0xff) + 1));
if (mby_mbx == 0)
return;