[FFmpeg-cvslog] avutil/internal: Move MAKE_ACCESSORS to its only user

Andreas Rheinhardt git at videolan.org
Thu Aug 5 21:41:12 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Aug  2 05:29:06 2021 +0200| [2146b6555343964b79261e5ab3865cc6ed7ba254] | committer: Andreas Rheinhardt

avutil/internal: Move MAKE_ACCESSORS to its only user

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2146b6555343964b79261e5ab3865cc6ed7ba254
---

 libavcodec/vdpau.c   | 3 +++
 libavutil/internal.h | 4 ----
 2 files changed, 3 insertions(+), 4 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,
diff --git a/libavutil/internal.h b/libavutil/internal.h
index d8a1f2672e..73498dc70d 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -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.
  */



More information about the ffmpeg-cvslog mailing list