]> code.ossystems Code Review - meta-freescale.git/blob
4fa3d8be248b5aa92a499f119cef318e7f65a345
[meta-freescale.git] /
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
5
6 Decoding the stream with mp4PackedPBFrame is failure due to write
7 point in bitstream set wrong.
8 This patch will fix it.
9
10 Signed-off-by: Sammy He <r62914@freescale.com>
11 ---
12  vpu/vpu_lib.c |    3 +++
13  1 files changed, 3 insertions(+), 0 deletions(-)
14
15 diff --git a/vpu/vpu_lib.c b/vpu/vpu_lib.c
16 index a5522fa..32d44b2 100644
17 --- a/vpu/vpu_lib.c
18 +++ b/vpu/vpu_lib.c
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);
26         }
27  
28         val = VpuReadReg(RET_DEC_PIC_SIZE);     /* decoding picture size */
29 -- 
30 1.7.1
31