Mercurial > libavformat.hg
comparison mov.c @ 4730:0d01d01e6a9d libavformat
simplify printing
author | bcoudurier |
---|---|
date | Mon, 16 Mar 2009 06:46:28 +0000 |
parents | 276616a5db61 |
children | 18bcd89f5809 |
comparison
equal
deleted
inserted
replaced
4729:276616a5db61 | 4730:0d01d01e6a9d |
---|---|
327 | 327 |
328 /* component type */ | 328 /* component type */ |
329 ctype = get_le32(pb); | 329 ctype = get_le32(pb); |
330 type = get_le32(pb); /* component subtype */ | 330 type = get_le32(pb); /* component subtype */ |
331 | 331 |
332 dprintf(c->fc, "ctype= %c%c%c%c (0x%08x)\n", *((char *)&ctype), ((char *)&ctype)[1], | 332 dprintf(c->fc, "ctype= %.4s (0x%08x)\n", (char*)&ctype, ctype); |
333 ((char *)&ctype)[2], ((char *)&ctype)[3], (int) ctype); | 333 dprintf(c->fc, "stype= %.4s\n", (char*)&type); |
334 dprintf(c->fc, "stype= %c%c%c%c\n", | |
335 *((char *)&type), ((char *)&type)[1], ((char *)&type)[2], ((char *)&type)[3]); | |
336 | 334 |
337 if (type == MKTAG('v','i','d','e')) | 335 if (type == MKTAG('v','i','d','e')) |
338 st->codec->codec_type = CODEC_TYPE_VIDEO; | 336 st->codec->codec_type = CODEC_TYPE_VIDEO; |
339 else if(type == MKTAG('s','o','u','n')) | 337 else if(type == MKTAG('s','o','u','n')) |
340 st->codec->codec_type = CODEC_TYPE_AUDIO; | 338 st->codec->codec_type = CODEC_TYPE_AUDIO; |