Skip to content

Commit

Permalink
avcenc: Use the appropriate size for VAEncMiscParameterHRD
Browse files Browse the repository at this point in the history
This buffer's size should the one of the VAEncMiscParameterHRD structure,
not the VAEncMiscParameterRateControl.

Signed-off-by: Carlos Falgueras García <[email protected]>
  • Loading branch information
carlosfg-flu authored and XinfengZhang committed Jun 16, 2022
1 parent 69703e3 commit 921780c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encode/avcenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ static int begin_picture(FILE *yuv_fp, int frame_num, int display_num, int slice
vaCreateBuffer(va_dpy,
avcenc_context.context_id,
VAEncMiscParameterBufferType,
sizeof(VAEncMiscParameterBuffer) + sizeof(VAEncMiscParameterRateControl),
sizeof(VAEncMiscParameterBuffer) + sizeof(VAEncMiscParameterHRD),
1,
NULL,
&avcenc_context.misc_parameter_hrd_buf_id);
Expand Down

0 comments on commit 921780c

Please sign in to comment.