Some filters need several input frames before producing output. For these filter, it becomes simpler to return 0 in request_frame() and let the framework call it again until output has been produced.
Showing the changes to libavfilter/avfilter.h (1 of 3 files). Show all
Unified · Split
| @@ -682,6 +682,17 @@ struct AVFilterLink { · 681 unmodified lines | |||
| 682 | * Number of channels. | 682 | * Number of channels. |
| 683 | */ | 683 | */ |
| 684 | int channels; | 684 | int channels; |
| 685 | |||
| 686 | /** | ||
| 687 | * True if a frame is being requested on the link. | ||
| 688 | * Used internally by the framework. | ||
| 689 | */ | ||
| 690 | unsigned frame_requested; | ||
| 691 | |||
| 692 | /** | ||
| 693 | * Link processing flags. | ||
| 694 | */ | ||
| 695 | unsigned flags; | ||
| 685 | }; | 696 | }; |
| 686 | 697 | ||
| 687 | /** | 698 | /** |