mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-16 13:51:37 +08:00
fftools/ffmpeg_filter: restrict reap_filters() to a single filtergraph
This is more natural, as all except one of its callers require processing only one filtergraph.
This commit is contained in:
@@ -1171,7 +1171,15 @@ static int transcode_step(OutputStream *ost)
|
||||
if (ret < 0)
|
||||
return ret == AVERROR_EOF ? 0 : ret;
|
||||
|
||||
return reap_filters(0);
|
||||
// process_input() above might have caused output to become available
|
||||
// in multiple filtergraphs, so we process all of them
|
||||
for (int i = 0; i < nb_filtergraphs; i++) {
|
||||
ret = reap_filters(filtergraphs[i], 0);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user