[FFmpeg-cvslog] r18003 - trunk/libavformat/mov.c

bcoudurier subversion
Mon Mar 16 07:46:29 CET 2009


Author: bcoudurier
Date: Mon Mar 16 07:46:28 2009
New Revision: 18003

Log:
simplify printing

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	Mon Mar 16 07:44:16 2009	(r18002)
+++ trunk/libavformat/mov.c	Mon Mar 16 07:46:28 2009	(r18003)
@@ -329,10 +329,8 @@ static int mov_read_hdlr(MOVContext *c, 
     ctype = get_le32(pb);
     type = get_le32(pb); /* component subtype */
 
-    dprintf(c->fc, "ctype= %c%c%c%c (0x%08x)\n", *((char *)&ctype), ((char *)&ctype)[1],
-            ((char *)&ctype)[2], ((char *)&ctype)[3], (int) ctype);
-    dprintf(c->fc, "stype= %c%c%c%c\n",
-            *((char *)&type), ((char *)&type)[1], ((char *)&type)[2], ((char *)&type)[3]);
+    dprintf(c->fc, "ctype= %.4s (0x%08x)\n", (char*)&ctype, ctype);
+    dprintf(c->fc, "stype= %.4s\n", (char*)&type);
 
     if     (type == MKTAG('v','i','d','e'))
         st->codec->codec_type = CODEC_TYPE_VIDEO;




More information about the ffmpeg-cvslog mailing list