aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2013-08-09 20:50:29 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2013-08-10 07:56:42 +0200
commitd4db7c334b6665b49d3f98bd5d7e0088f598d7b1 (patch)
tree8fad77419fa9988eb804d59b3d5f828ca8a9654f /libavutil
parentdb8578a809f5050abbeee3d6baa47f77fab21c39 (diff)
downloadffmpeg-d4db7c334b6665b49d3f98bd5d7e0088f598d7b1.tar.gz
Integrate accessors.h header into internal.h
I have no idea why I added a separate header, I think there is no good reason for it. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/accessors.h3
-rw-r--r--libavutil/frame.c2
-rw-r--r--libavutil/internal.h4
3 files changed, 4 insertions, 5 deletions
diff --git a/libavutil/accessors.h b/libavutil/accessors.h
deleted file mode 100644
index 471cdff7f6..0000000000
--- a/libavutil/accessors.h
+++ /dev/null
@@ -1,3 +0,0 @@
-#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; }
diff --git a/libavutil/frame.c b/libavutil/frame.c
index df03e258db..b0fdd49ade 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -27,8 +27,6 @@
#include "mem.h"
#include "samplefmt.h"
-#include "accessors.h"
-
MAKE_ACCESSORS(AVFrame, frame, int64_t, best_effort_timestamp)
MAKE_ACCESSORS(AVFrame, frame, int64_t, pkt_duration)
MAKE_ACCESSORS(AVFrame, frame, int64_t, pkt_pos)
diff --git a/libavutil/internal.h b/libavutil/internal.h
index 680d600451..786bd867db 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -76,6 +76,10 @@
#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; }
+
// Some broken preprocessors need a second expansion
// to be forced to tokenize __VA_ARGS__
#define E1(x) x