MMFMWK-8542: VPU Decoder: correct the consumed length if rptr cross over
authorming_qian <ming.qian@nxp.com>
Fri, 31 May 2019 05:23:28 +0000 (13:23 +0800)
committerming_qian <ming.qian@nxp.com>
Fri, 31 May 2019 07:26:18 +0000 (15:26 +0800)
commit3b5a373732d72b271dd75d51917207d5b5586bd0
tree006291a5ff6424a6f906e65e5fecba7273016b67
parent560d7640a3242d6962fe7280d98e21b16f014112
MMFMWK-8542: VPU Decoder: correct the consumed length if rptr cross over

after abort, if there is no IDR frame, the decoder can't decode any
frame.
If the gop is large, and the stream buffer is full, it will cause hang.
Decoder can skip the undecoded P/B frames and update the rptr.
If the rptr cross over the pre end address,
the consumed length should add stream buffer length.

clear req_frame_count before update uActiveSeqTag

Signed-off-by: ming_qian <ming.qian@nxp.com>
Reviewed-by: Zhou Peng <eagle.zhou@nxp.com>
Reviewed-by: Shijie Qin <shijie.qin@nxp.com>
drivers/mxc/vpu_malone/vpu_b0.c