Files
FFmpeg/libavutil
nyanmisaka eb9070aba4 lavu/hwcontext_vaapi: fix a race mapping to allow CSC to YUV420P
There's a race condition for YUV420P when mapping from pix_fmt
to VA fourcc, both I420 and YV12 could be found by pix_fmt.

Currently, vaapi_get_image_format() iterates over the query results
of pix_fmt and returns the first matching result in the order
declared in the driver. This may result in an incorrect image_format.

Now use fourcc to find the image_format.

Fixes:
ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i INPUT \
-vf scale_vaapi=format=yuv420p,hwmap,format=yuv420p \
-vframes 1 -f rawvideo -y yuv420p.yuv

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2025-08-08 12:53:39 +00:00
..
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2024-07-21 17:02:12 +02:00
2025-05-07 15:35:47 +02:00
2024-03-04 17:45:00 +01:00
2024-12-04 16:43:06 +08:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2023-11-18 19:55:42 +01:00
2024-03-15 12:51:15 +01:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2024-05-04 21:31:33 -03:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2024-06-01 18:05:58 +03:00
2024-06-01 18:05:58 +03:00
2025-08-03 13:48:47 +02:00
2023-09-07 00:42:10 +02:00
2023-09-07 00:42:10 +02:00
2023-09-07 00:42:10 +02:00
2025-08-03 13:48:47 +02:00
2024-03-31 00:08:43 +01:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2024-01-16 01:34:57 +01:00
2025-08-03 13:48:47 +02:00
2023-09-07 00:42:10 +02:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2023-08-08 09:46:11 +02:00
2025-08-03 13:48:47 +02:00
2025-06-11 01:20:18 +09:00