diff options
author | Peter Ross <pross@xvid.org> | 2011-04-05 20:36:46 +1000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-04-07 17:54:52 +0200 |
commit | c1309b27d2fc57a18a22336c7812874191b2bdac (patch) | |
tree | 3628aea39ee059c5d93d1650279159e7b2187092 /libavformat/riff.h | |
parent | dc4103610520ae70d4989ffe3850dcf4deed54a9 (diff) | |
download | ffmpeg-c1309b27d2fc57a18a22336c7812874191b2bdac.tar.gz |
move ff_asf_guid, ff_guidcmp and ff_get_guid into riff.h
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/riff.h')
-rw-r--r-- | libavformat/riff.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/riff.h b/libavformat/riff.h index 5a45a38e68..c8a47e0af7 100644 --- a/libavformat/riff.h +++ b/libavformat/riff.h @@ -54,4 +54,13 @@ unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id); enum CodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag); void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale); +typedef uint8_t ff_asf_guid[16]; + +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(AVIOContext *s, ff_asf_guid *g); + #endif /* AVFORMAT_RIFF_H */ |