forked from FFmpeg/FFmpeg
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avfilter/internal: Add flag to free filtered AVFrames generically
Up until now, an AVFilterPad's filter_frame callback was always responsible for passing the frame to the next filter or freeing it. Yet there are several filter_frame callbacks that need to free this frame on every exit, so it makes sense to do this generically. This commit adds a flag which if set shifts the responsibility to free the frame to the caller of filter_frame. In the future this might be extended to avoid allocating+freeing the frame for filters with this flag set. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
- Loading branch information
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters