From: bcoudurier Date: Mon, 16 Mar 2009 06:46:28 +0000 (+0000) Subject: simplify printing X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/ffmpeg.git/commitdiff_plain/c6e8ce0f4012b1eb449830a941047f0d19f6953f simplify printing git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18003 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- diff --git a/libavformat/mov.c b/libavformat/mov.c index baf47899a..c3b1e6650 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -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;