[FFmpeg-devel] [RFC]Print the GUID also as shown in the Windows Registry

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Dec 1 20:33:10 CET 2014


Hi!

Attached patch produces an output for GUIDs that is more similar 
to the relevant documentations.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/riff.h b/libavformat/riff.h
index 88a77b0..e925634 100644
--- a/libavformat/riff.h
+++ b/libavformat/riff.h
@@ -91,10 +91,13 @@ typedef struct AVCodecGuid {
 extern const AVCodecGuid ff_codec_wav_guids[];
 
 #define FF_PRI_GUID \
-    "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x"
+    "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x " \
+    "{%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x}"
 
 #define FF_ARG_GUID(g) \
     g[0], g[1], g[2],  g[3],  g[4],  g[5],  g[6],  g[7], \
+    g[8], g[9], g[10], g[11], g[12], g[13], g[14], g[15],\
+    g[3], g[2], g[1],  g[0],  g[5],  g[4],  g[7],  g[6], \
     g[8], g[9], g[10], g[11], g[12], g[13], g[14], g[15]
 
 #define FF_MEDIASUBTYPE_BASE_GUID \


More information about the ffmpeg-devel mailing list