summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorElaine Wang <elaine.wang@intel.com>2013-05-10 19:04:37 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2013-06-25 13:53:58 +0800
commit7c87a3e4c2d47dff9982a45b9ca4400d58b997cd (patch)
tree7ffd80e3426f9d18127c9d30aa7db38f9d46f980 /test
parent64f9de399187204d5c30cf205b4279ec5b002675 (diff)
downloadlibva-7c87a3e4c2d47dff9982a45b9ca4400d58b997cd.tar.gz
h264encode: reset IDR poc to 0
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Diffstat (limited to 'test')
-rw-r--r--test/encode/h264encode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/encode/h264encode.c b/test/encode/h264encode.c
index 8c6e008..2d268aa 100644
--- a/test/encode/h264encode.c
+++ b/test/encode/h264encode.c
@@ -1568,7 +1568,7 @@ static int render_slice(void)
slice_param.slice_alpha_c0_offset_div2 = 2;
slice_param.slice_beta_offset_div2 = 2;
- slice_param.pic_order_cnt_lsb = current_frame_display % MaxPicOrderCntLsb;
+ slice_param.pic_order_cnt_lsb = (current_frame_display - current_IDR_display) % MaxPicOrderCntLsb;
va_status = vaCreateBuffer(va_dpy,context_id,VAEncSliceParameterBufferType,
sizeof(slice_param),1,&slice_param,&slice_param_buf);