hardware/intel/libva
Revision | 7c87a3e4c2d47dff9982a45b9ca4400d58b997cd (tree) |
---|---|
Zeit | 2013-06-25 14:53:58 |
Autor | Elaine Wang <elaine.wang@inte...> |
Commiter | Xiang, Haihao |
h264encode: reset IDR poc to 0
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
@@ -1568,7 +1568,7 @@ static int render_slice(void) | ||
1568 | 1568 | |
1569 | 1569 | slice_param.slice_alpha_c0_offset_div2 = 2; |
1570 | 1570 | slice_param.slice_beta_offset_div2 = 2; |
1571 | - slice_param.pic_order_cnt_lsb = current_frame_display % MaxPicOrderCntLsb; | |
1571 | + slice_param.pic_order_cnt_lsb = (current_frame_display - current_IDR_display) % MaxPicOrderCntLsb; | |
1572 | 1572 | |
1573 | 1573 | va_status = vaCreateBuffer(va_dpy,context_id,VAEncSliceParameterBufferType, |
1574 | 1574 | sizeof(slice_param),1,&slice_param,&slice_param_buf); |