Skip to content

Commit b1676a1

Browse files
committed
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 bfb6b98 commit b1676a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

encode/avcenc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ static int begin_picture(FILE *yuv_fp, int frame_num, int display_num, int slice
851851
vaCreateBuffer(va_dpy,
852852
avcenc_context.context_id,
853853
VAEncMiscParameterBufferType,
854-
sizeof(VAEncMiscParameterBuffer) + sizeof(VAEncMiscParameterRateControl),
854+
sizeof(VAEncMiscParameterBuffer) + sizeof(VAEncMiscParameterHRD),
855855
1,
856856
NULL,
857857
&avcenc_context.misc_parameter_hrd_buf_id);

0 commit comments

Comments
 (0)