[FFmpeg-devel] [PATCH 01/10] lavf: move ff_guidcmp from asfdec.c to asf.c

Anton Khirnov anton
Tue Feb 8 21:46:46 CET 2011


---
 libavformat/asf.c    |    4 ++++
 libavformat/asfdec.c |    5 -----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/libavformat/asf.c b/libavformat/asf.c
index 1f6af18..10fa422 100644
--- a/libavformat/asf.c
+++ b/libavformat/asf.c
@@ -20,6 +20,10 @@
 
 #include "asf.h"
 
+int ff_guidcmp(const void *g1, const void *g2)
+{
+    return memcmp(g1, g2, sizeof(ff_asf_guid));
+}
 
 const ff_asf_guid ff_asf_header = {
     0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 35e892c..a73a347 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -49,11 +49,6 @@ static const ff_asf_guid stream_bitrate_guid = { /* (http://get.to/sdp) */
 /**********************************/
 /* decoding */
 
-int ff_guidcmp(const void *g1, const void *g2)
-{
-    return memcmp(g1, g2, sizeof(ff_asf_guid));
-}
-
 #ifdef DEBUG
 #define PRINT_IF_GUID(g,cmp) \
 if (!ff_guidcmp(g, &cmp)) \
-- 
1.7.2.3




More information about the ffmpeg-devel mailing list