[FFmpeg-cvslog] avformat/mxf: Simplify PRINT_KEY()

Michael Niedermayer git at videolan.org
Sun May 10 14:46:38 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May  7 03:38:43 2015 +0200| [8b42b222220900be4d2040149dea15074b2b8b02] | committer: Michael Niedermayer

avformat/mxf: Simplify PRINT_KEY()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8b42b222220900be4d2040149dea15074b2b8b02
---

 libavformat/mxf.h |   12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/libavformat/mxf.h b/libavformat/mxf.h
index 71a4084..dd08bdc 100644
--- a/libavformat/mxf.h
+++ b/libavformat/mxf.h
@@ -102,22 +102,14 @@ const MXFSamplesPerFrame *ff_mxf_get_samples_per_frame(AVFormatContext *s, AVRat
            "0x%02x,0x%02x,0x%02x,0x%02x,"           \
            "0x%02x,0x%02x,0x%02x,0x%02x,"           \
            "0x%02x,0x%02x,0x%02x,0x%02x ",          \
-            s,                                      \
-            (x)[0],  (x)[1],  (x)[2],  (x)[3],      \
-            (x)[4],  (x)[5],  (x)[6],  (x)[7],      \
-            (x)[8],  (x)[9],  (x)[10], (x)[11],     \
-            (x)[12], (x)[13], (x)[14], (x)[15]);    \
+            s, UID_ARG(x));                         \
     av_log(pc, AV_LOG_INFO,                         \
            "%s "                                    \
            "%02x.%02x.%02x.%02x."                   \
            "%02x.%02x.%02x.%02x."                   \
            "%02x.%02x.%02x.%02x."                   \
            "%02x.%02x.%02x.%02x\n",                 \
-            s,                                      \
-            (x)[0],  (x)[1],  (x)[2],  (x)[3],      \
-            (x)[4],  (x)[5],  (x)[6],  (x)[7],      \
-            (x)[8],  (x)[9],  (x)[10], (x)[11],     \
-            (x)[12], (x)[13], (x)[14], (x)[15])
+            s, UID_ARG(x))
 #else
 #define PRINT_KEY(pc, s, x)
 #endif



More information about the ffmpeg-cvslog mailing list