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/vf_format.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/vf_format.c')
-rw-r--r-- | libavfilter/vf_format.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_format.c b/libavfilter/vf_format.c index 6c5475b84a..0128a94e06 100644 --- a/libavfilter/vf_format.c +++ b/libavfilter/vf_format.c @@ -149,7 +149,7 @@ static const AVFilterPad avfilter_vf_format_inputs[] = { { .name = "default", .type = AVMEDIA_TYPE_VIDEO, - .get_video_buffer = ff_null_get_video_buffer, + .get_buffer.video = ff_null_get_video_buffer, }, { NULL } }; @@ -188,7 +188,7 @@ static const AVFilterPad avfilter_vf_noformat_inputs[] = { { .name = "default", .type = AVMEDIA_TYPE_VIDEO, - .get_video_buffer = ff_null_get_video_buffer, + .get_buffer.video = ff_null_get_video_buffer, }, { NULL } }; |