fftools/ffmpeg: return error codes from ist_*_add()

Will be useful in future commits.
This commit is contained in:
Anton Khirnov
2023-05-11 10:51:13 +02:00
parent ede6794d6a
commit dfa29ba955
4 changed files with 47 additions and 20 deletions

View File

@@ -1225,8 +1225,14 @@ static OutputStream *ost_add(Muxer *mux, const OptionsContext *o,
"Error initializing a simple filtergraph\n");
exit_program(1);
}
} else
ist_output_add(ost->ist, ost);
} else {
ret = ist_output_add(ost->ist, ost);
if (ret < 0) {
av_log(ost, AV_LOG_ERROR,
"Error binding an input stream\n");
exit_program(1);
}
}
}
if (ost->ist && !ost->enc) {