avutil/internal: Move MAKE_ACCESSORS to its only user

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-08-02 05:29:06 +02:00
parent 549502868d
commit 2146b65553
2 changed files with 3 additions and 4 deletions

View File

@ -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,

View File

@ -86,10 +86,6 @@
#define FF_MEMORY_POISON 0x2a
#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; }
/* Check if the hard coded offset of a struct member still matches reality.
* Induce a compilation failure if not.
*/