mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
avfilter/avfilter: Move frame_pool to FilterLinkInternal
Avoids ugly casts when uninitializing. (One could actually avoid allocating this separately if one were willing to expose FFFramePool to those files including link_internal.h.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -201,7 +201,7 @@ void avfilter_link_free(AVFilterLink **link)
|
||||
li = ff_link_internal(*link);
|
||||
|
||||
ff_framequeue_free(&li->fifo);
|
||||
ff_frame_pool_uninit((FFFramePool**)&(*link)->frame_pool);
|
||||
ff_frame_pool_uninit(&li->frame_pool);
|
||||
av_channel_layout_uninit(&(*link)->ch_layout);
|
||||
|
||||
av_freep(link);
|
||||
|
||||
Reference in New Issue
Block a user