diff mbox series

[FFmpeg-devel] fftools/ffplay: Fix output color_spaces of filter

Message ID tencent_9B0C4D25A052CDBCCFBD555CA71D389F9607@qq.com
State Accepted
Commit 39a0c55347075120c3b4749d6ca620e248cf52bc
Headers show
Series [FFmpeg-devel] fftools/ffplay: Fix output color_spaces of filter | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Zhao Zhili Feb. 20, 2024, 5:33 a.m. UTC
From: Zhao Zhili <zhilizhao@tencent.com>

The sdl_supported_color_spaces only meant for SDL builtin renderer.
---
 fftools/ffplay.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fftools/ffplay.c b/fftools/ffplay.c
index 53e6fc0514..5b54fab492 100644
--- a/fftools/ffplay.c
+++ b/fftools/ffplay.c
@@ -1928,7 +1928,8 @@  static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c
 
     if ((ret = av_opt_set_int_list(filt_out, "pix_fmts", pix_fmts,  AV_PIX_FMT_NONE, AV_OPT_SEARCH_CHILDREN)) < 0)
         goto fail;
-    if ((ret = av_opt_set_int_list(filt_out, "color_spaces", sdl_supported_color_spaces,  AVCOL_SPC_UNSPECIFIED, AV_OPT_SEARCH_CHILDREN)) < 0)
+    if (!vk_renderer &&
+        (ret = av_opt_set_int_list(filt_out, "color_spaces", sdl_supported_color_spaces,  AVCOL_SPC_UNSPECIFIED, AV_OPT_SEARCH_CHILDREN)) < 0)
         goto fail;
 
     last_filter = filt_out;