aboutsummaryrefslogtreecommitdiff
path: root/videodecoder
diff options
context:
space:
mode:
authorywan171 <yi.a.wang@intel.com>2014-10-28 17:22:35 +0800
committerPatrick Tjin <pattjin@google.com>2014-10-30 15:12:57 -0700
commit4ed41ba5c78e10aec0b96206709082c83d47af99 (patch)
tree9d84b6b0c9ff1d90ab50ad184b63ebc2ad584e93 /videodecoder
parent67efa6523d593d3ebdb3e22eafb186e26d4bad74 (diff)
downloadlibmix-4ed41ba5c78e10aec0b96206709082c83d47af99.tar.gz
libmix: use DPB from parser
send the whole reference frame list to va instead of ref0+ref1 Bug: 17693351 Change-Id: Ie83d9bde2c07b5cd7ffcb1ea208aa8c7f215f441 Signed-off-by: ywan171 <yi.a.wang@intel.com>
Diffstat (limited to 'videodecoder')
-rw-r--r--videodecoder/VideoDecoderAVC.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/videodecoder/VideoDecoderAVC.cpp b/videodecoder/VideoDecoderAVC.cpp
index 8ed91f9..ad4ad33 100644
--- a/videodecoder/VideoDecoderAVC.cpp
+++ b/videodecoder/VideoDecoderAVC.cpp
@@ -517,6 +517,13 @@ Decode_Status VideoDecoderAVC::updateReferenceFrames(vbp_picture_data_h264 *picD
VAPictureH264 *dpb = picParam->ReferenceFrames;
VAPictureH264 *refFrame = NULL;
+ for(int i = 0; i < picParam->num_ref_frames; i++) {
+ dpb->picture_id = findSurface(dpb);
+ dpb++;
+ }
+
+ return DECODE_SUCCESS;
+
// invalidate DPB in the picture buffer
memset(picParam->ReferenceFrames, 0xFF, sizeof(picParam->ReferenceFrames));
picParam->num_ref_frames = 0;