1 From 3bca9e128dd82e69f877e90c1bcd614c48a75161 Mon Sep 17 00:00:00 2001
2 From: Sammy He <r62914@freescale.com>
3 Date: Thu, 15 Sep 2011 22:40:10 +0800
4 Subject: [PATCH 1/3] ENGR00156800 vpu: Fix decoding mp4PackedPBFrame stream failure issue
6 Decoding the stream with mp4PackedPBFrame is failure due to write
7 point in bitstream set wrong.
8 This patch will fix it.
10 Signed-off-by: Sammy He <r62914@freescale.com>
13 1 files changed, 3 insertions(+), 0 deletions(-)
15 diff --git a/vpu/vpu_lib.c b/vpu/vpu_lib.c
16 index a5522fa..32d44b2 100644
19 @@ -3552,6 +3552,9 @@ RetCode vpu_DecGetOutputInfo(DecHandle handle, DecOutputInfo * info)
20 info->notSufficientSliceBuffer = (val >> 2) & 0x1;
21 } else if (pCodecInst->codecMode == MP4_DEC) {
22 info->mp4PackedPBframe = ((val >> 16) & 0x01);
23 + /* Need to backup WR_PTR for mp4PackedPBframe */
24 + if (info->mp4PackedPBframe)
25 + pCodecInst->ctxRegs[CTX_BIT_WR_PTR] = VpuReadReg(BIT_WR_PTR);
28 val = VpuReadReg(RET_DEC_PIC_SIZE); /* decoding picture size */