aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/libopenmpt.c
diff options
context:
space:
mode:
authornyanmisaka <nst799610810@gmail.com>2025-08-07 22:32:20 +0800
committerLynne <dev@lynne.ee>2025-08-08 12:53:39 +0000
commiteb9070aba4fa20fc9b4929a40182675d1d458844 (patch)
tree61ee4d9e2f5d75f06421888bfd64291b9e12058e /libavformat/libopenmpt.c
parentd643a5ba0836c4d7ec86cb67fae387984ef3d1a6 (diff)
downloadffmpeg-eb9070aba4fa20fc9b4929a40182675d1d458844.tar.gz
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>
Diffstat (limited to 'libavformat/libopenmpt.c')
0 files changed, 0 insertions, 0 deletions