mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
frontends/va/enc: allow for frames to be marked as (not) referenced
Signed-off-by: Thong Thai <thong.thai@amd.com> Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13915>
This commit is contained in:
parent
ad3ed91b1f
commit
e44fef8dd6
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ vlVaHandleVAEncPictureParameterBufferTypeH264(vlVaDriver *drv, vlVaContext *cont
|
|||
|
||||
h264 = buf->data;
|
||||
context->desc.h264enc.frame_num = h264->frame_num;
|
||||
context->desc.h264enc.not_referenced = false;
|
||||
context->desc.h264enc.not_referenced = !h264->pic_fields.bits.reference_pic_flag;
|
||||
context->desc.h264enc.pic_order_cnt = h264->CurrPic.TopFieldOrderCnt;
|
||||
if (context->desc.h264enc.gop_cnt == 0)
|
||||
context->desc.h264enc.i_remain = context->gop_coeff;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue