mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-13 04:24:49 +08:00
fftools/ffmpeg: return error codes from ist_*_add()
Will be useful in future commits.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user