fftools/ffmpeg_filter: return error codes from ofilter_bind_ost() instead of aborting

This commit is contained in:
Anton Khirnov
2023-07-13 15:11:07 +02:00
parent 6298dd683b
commit ab16e324ea
3 changed files with 12 additions and 6 deletions

View File

@@ -1382,7 +1382,9 @@ static int ost_add(Muxer *mux, const OptionsContext *o, enum AVMediaType type,
(type == AVMEDIA_TYPE_VIDEO || type == AVMEDIA_TYPE_AUDIO)) {
if (ofilter) {
ost->filter = ofilter;
ofilter_bind_ost(ofilter, ost);
ret = ofilter_bind_ost(ofilter, ost);
if (ret < 0)
return ret;
} else {
ret = init_simple_filtergraph(ost->ist, ost, filters);
if (ret < 0) {