mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-13 12:34:26 +08:00
fftools/ffmpeg_filter: return error codes from ofilter_bind_ost() instead of aborting
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user