fftools/ffmpeg: return an error from assert_avoptions() instead of aborting

Rename it to check_avoptions().
This commit is contained in:
Anton Khirnov
2023-07-14 18:18:57 +02:00
parent eda1fac27a
commit 2f155b18a1
5 changed files with 17 additions and 6 deletions

View File

@@ -1119,7 +1119,10 @@ int dec_open(InputStream *ist)
av_err2str(ret));
return ret;
}
assert_avoptions(ist->decoder_opts);
ret = check_avoptions(ist->decoder_opts);
if (ret < 0)
return ret;
ret = dec_thread_start(ist);
if (ret < 0) {