mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
fftools/ffplay: Check vulkan_params
Fixes: CID1550133 Unchecked return value
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 4bca147415
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
4042d01660
commit
bd3a6b6681
@ -3843,8 +3843,13 @@ int main(int argc, char **argv)
|
||||
if (vk_renderer) {
|
||||
AVDictionary *dict = NULL;
|
||||
|
||||
if (vulkan_params)
|
||||
av_dict_parse_string(&dict, vulkan_params, "=", ":", 0);
|
||||
if (vulkan_params) {
|
||||
int ret = av_dict_parse_string(&dict, vulkan_params, "=", ":", 0);
|
||||
if (ret < 0) {
|
||||
av_log(NULL, AV_LOG_FATAL, "Failed to parse, %s\n", vulkan_params);
|
||||
do_exit(NULL);
|
||||
}
|
||||
}
|
||||
ret = vk_renderer_create(vk_renderer, window, dict);
|
||||
av_dict_free(&dict);
|
||||
if (ret < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user