mirror of https://git.ffmpeg.org/ffmpeg.git
fftools/ffplay: Check vulkan_params
Fixes: CID1550133 Unchecked return value Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
ed364444f1
commit
4bca147415
|
@ -3836,8 +3836,13 @@ int main(int argc, char **argv)
|
||||||
if (vk_renderer) {
|
if (vk_renderer) {
|
||||||
AVDictionary *dict = NULL;
|
AVDictionary *dict = NULL;
|
||||||
|
|
||||||
if (vulkan_params)
|
if (vulkan_params) {
|
||||||
av_dict_parse_string(&dict, vulkan_params, "=", ":", 0);
|
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);
|
ret = vk_renderer_create(vk_renderer, window, dict);
|
||||||
av_dict_free(&dict);
|
av_dict_free(&dict);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|
Loading…
Reference in New Issue