PD#SWPL-27454
Problem:
the source of h264 with ippp playback abnormal.
Solution:
has some wrong with first I frame so will be checked
on the decoding, then the frame will be show if the
error rate below 5%, but now the mb with calculation is
incorrect which cause it do not a chance to display.
Verify:
w200
Change-Id: I865dd6bec6a8aa9bd830f9800afdf037d7843e23
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
unsigned mby_mbx = READ_VREG(MBY_MBX);
unsigned mb_total = (hw->seq_info2 >> 8) & 0xffff;
unsigned decode_mb_count =
- ((mby_mbx & 0xff) * hw->mb_width +
+ ((mby_mbx & 0xff) * (hw->seq_info2 & 0xff) +
(((mby_mbx >> 8) & 0xff) + 1));
if (mby_mbx == 0)
return;