vavp9enc: some resolutions fails to encode using CQP
Using iHD driver version 24.1.3 (libva 2.21) on Alder Lake
This pipeline fails:
gst-launch-1.0 videotestsrc pattern=1 ! video/x-raw, format=NV12, width=640, height=480 ! vavp9lpenc rate-control=cqp ! fakesink
with these logs
0:00:00.106913809 88845 0x7f9f4c000b90 DEBUG vabaseenc gstvabaseenc.c:371:gst_va_base_enc_copy_output_data:<vavp9lpenc0> Not enough space for coded data
0:00:00.106927139 88845 0x7f9f4c000b90 ERROR vavp9enc gstvavp9enc.c:2544:_vp9_create_super_frame_output_buffer:<vavp9lpenc0> Fails to copy the output data of system_frame_number 1, frame_num: 1
0:00:00.106931294 88845 0x7f9f4c000b90 ERROR vavp9enc gstvavp9enc.c:2660:gst_va_vp9_enc_prepare_output:<vavp9lpenc0> Failed to create output buffer
0:00:00.106933608 88845 0x7f9f4c000b90 ERROR vabaseenc gstvabaseenc.c:466:_push_buffer_to_downstream:<vavp9lpenc0> Failed to prepare output
0:00:00.106954914 88845 0x7f9f4c000b90 DEBUG vabaseenc gstvabaseenc.c:513:_push_out_one_buffer:<vavp9lpenc0> fails to push one buffer, system_frame_number 1: error
cc: @He_Junyan