History

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.)

Andreas Rheinhardt committed 2 years ago

Commit 32538da1 parent 4a732995 files · +27 −26Browse files

Showing the changes to libavfilter/avfilter.c (1 of 5 files). Show all

Unified · Split

libavfilter/avfilter.c+1−1
@@ -201,7 +201,7 @@ void avfilter_link_free(AVFilterLink **link) · 200 unmodified lines
201201 li = ff_link_internal(*link);
202202
203203 ff_framequeue_free(&li->fifo);
204− ff_frame_pool_uninit((FFFramePool**)&(*link)->frame_pool);
204+ ff_frame_pool_uninit(&li->frame_pool);
205205 av_channel_layout_uninit(&(*link)->ch_layout);
206206
207207 av_freep(link);

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