Skip to content

Commit ffed653

Browse files
carlosfg-fluXinfengZhang
authored andcommitted
avcenc: Use the appropriate size for VAEncMiscParameterHRD
This buffer's size should the one of the VAEncMiscParameterHRD structure, not the VAEncMiscParameterRateControl. Signed-off-by: Carlos Falgueras García <cfalgueras@fluendo.com>
1 parent 1747b4d commit ffed653

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

encode/avcenc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ static int begin_picture(FILE *yuv_fp, int frame_num, int display_num, int slice
859859
va_status = vaCreateBuffer(va_dpy,
860860
avcenc_context.context_id,
861861
VAEncMiscParameterBufferType,
862-
sizeof(VAEncMiscParameterBuffer) + sizeof(VAEncMiscParameterRateControl),
862+
sizeof(VAEncMiscParameterBuffer) + sizeof(VAEncMiscParameterHRD),
863863
1,
864864
NULL,
865865
&avcenc_context.misc_parameter_hrd_buf_id);

0 commit comments

Comments
 (0)