[FFmpeg-devel] [PATCH 5/5] fftools/ffplay: allow unused format options which are also codec options

Marton Balint cus at passwd.hu
Sat May 18 19:11:16 EEST 2024


Same as it is handled in ffmpeg, allows using -ch_layout codec option.

Signed-off-by: Marton Balint <cus at passwd.hu>
---
 fftools/ffplay.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fftools/ffplay.c b/fftools/ffplay.c
index ff48fa5f8c..1d0511b254 100644
--- a/fftools/ffplay.c
+++ b/fftools/ffplay.c
@@ -2858,6 +2858,7 @@ static int read_thread(void *arg)
     }
     if (scan_all_pmts_set)
         av_dict_set(&format_opts, "scan_all_pmts", NULL, AV_DICT_MATCH_CASE);
+    remove_avoptions(&format_opts, codec_opts);
 
     ret = check_avoptions(format_opts);
     if (ret < 0)
-- 
2.35.3



More information about the ffmpeg-devel mailing list