History

avfiltergraph: document a catch in request_oldest().

This one is tricky. Consider a graph with two sink links, A and B. request_oldest() requests on A, and A returns EOF. This EOF causes a filter to flush pending frames to B; they are unrequested. Then request_oldest() moves on to B, and B returns EOF.

Nicolas George committed 14 years ago

Commit d4838671 parent f98d8141 file · +6 −0Browse files

Showing the changes to libavfilter/avfiltergraph.h (1 of 1 file). Show all

Unified · Split

libavfilter/avfiltergraph.h+6−0
@@ -255,6 +255,12 @@ char *avfilter_graph_dump(AVFilterGraph *graph, const char *options); · 254 unmodified lines
255 * of a filtergraph, only a convenience function to help drain a filtergraph255 * of a filtergraph, only a convenience function to help drain a filtergraph
256 * in a balanced way under normal circumstances.256 * in a balanced way under normal circumstances.
257 *257 *
258 * Also note that AVERROR_EOF does not mean that frames did not arrive on
259 * some of the sinks during the process.
260 * When there are multiple sink links, in case the requested link
261 * returns an EOF, this may cause a filter to flush pending frames
262 * which are sent to another sink link, although unrequested.
263 *
258 * @return the return value of ff_request_frame,264 * @return the return value of ff_request_frame,
259 * or AVERROR_EOF of all links returned AVERROR_EOF.265 * or AVERROR_EOF of all links returned AVERROR_EOF.
260 */266 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t