]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
simplify printing
authorbcoudurier <bcoudurier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 16 Mar 2009 06:46:28 +0000 (06:46 +0000)
committerbcoudurier <bcoudurier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 16 Mar 2009 06:46:28 +0000 (06:46 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18003 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/mov.c

index baf47899aef8dde04aa7b8eaac73e3ddb6f05efd..c3b1e66503a36b475d0721e23e8db398ff58f49b 100644 (file)
@@ -329,10 +329,8 @@ static int mov_read_hdlr(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
     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;