diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-02 05:29:06 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-05 20:05:54 +0200 |
commit | 2146b6555343964b79261e5ab3865cc6ed7ba254 (patch) | |
tree | e7960589ef1dc99623c2d3409bbd5c3cb7d220a9 /libavcodec/vdpau.c | |
parent | 549502868d7192cefbc59708b1bdb9bd6b5d60c6 (diff) |
avutil/internal: Move MAKE_ACCESSORS to its only user
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/vdpau.c')
-rw-r--r-- | libavcodec/vdpau.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index f20dbd78e2..7c29746adb 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -69,6 +69,9 @@ AVVDPAUContext *av_alloc_vdpaucontext(void) return av_vdpau_alloc_context(); } +#define MAKE_ACCESSORS(str, name, type, field) \ + type av_##name##_get_##field(const str *s) { return s->field; } \ + void av_##name##_set_##field(str *s, type v) { s->field = v; } MAKE_ACCESSORS(AVVDPAUContext, vdpau_hwaccel, AVVDPAU_Render2, render2) int av_vdpau_get_surface_parameters(AVCodecContext *avctx, |