aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/asf.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-02-09 12:27:25 +0000
committerMans Rullgard <mans@mansr.com>2011-02-09 12:33:05 +0000
commite4e234fad77daa8628fc56155563248165d51ab4 (patch)
treecc404e2d779c29d97fdad03fce1af9c38e62d294 /libavformat/asf.h
parentc7ac200d15e3240972d269df768068f0e3bb9c2f (diff)
downloadffmpeg-e4e234fad77daa8628fc56155563248165d51ab4.tar.gz
asf: make ff_guidcmp inline and move it to asf.h
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavformat/asf.h')
-rw-r--r--libavformat/asf.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/asf.h b/libavformat/asf.h
index f336c43fa3..2a817dddba 100644
--- a/libavformat/asf.h
+++ b/libavformat/asf.h
@@ -230,7 +230,12 @@ extern const AVMetadataConv ff_asf_metadata_conv[];
#define ASF_PL_FLAG_KEY_FRAME 0x80 //1000 0000
extern AVInputFormat ff_asf_demuxer;
-int ff_guidcmp(const void *g1, const void *g2);
+
+static av_always_inline int ff_guidcmp(const void *g1, const void *g2)
+{
+ return memcmp(g1, g2, sizeof(ff_asf_guid));
+}
+
void ff_get_guid(ByteIOContext *s, ff_asf_guid *g);
#endif /* AVFORMAT_ASF_H */