diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-17 05:48:27 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-17 19:13:16 +0200 |
commit | 1aa640c7d785c39e0e19407521132d77b594e654 (patch) | |
tree | cd0e2657493e2c80f11c056b630cd3bb52674452 /libavfilter/video.c | |
parent | 90550856e5182487bdfbb0527110e4b94ac5ec0f (diff) | |
download | ffmpeg-1aa640c7d785c39e0e19407521132d77b594e654.tar.gz |
avfilter/internal: Combine get_(audio|video)_buffer into union
These fields are mutually exclusive, so putting them in a union
is possible and makes AVFilterPad smaller.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/video.c')
-rw-r--r-- | libavfilter/video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/video.c b/libavfilter/video.c index 810cc87f52..7ef04144e4 100644 --- a/libavfilter/video.c +++ b/libavfilter/video.c @@ -101,8 +101,8 @@ AVFrame *ff_get_video_buffer(AVFilterLink *link, int w, int h) FF_TPRINTF_START(NULL, get_video_buffer); ff_tlog_link(NULL, link, 0); - if (link->dstpad->get_video_buffer) - ret = link->dstpad->get_video_buffer(link, w, h); + if (link->dstpad->get_buffer.video) + ret = link->dstpad->get_buffer.video(link, w, h); if (!ret) ret = ff_default_get_video_buffer(link, w, h); |