comparison mov.c @ 4725:f2d519837d2d libavformat

do not set isom if ctype is not set, happens in mov
author bcoudurier
date Mon, 16 Mar 2009 05:13:55 +0000
parents 13ffc02ce5f8
children 1ce512298dbd
comparison
equal deleted inserted replaced
4724:13ffc02ce5f8 4725:f2d519837d2d
231 231
232 dprintf(c->fc, "ctype= %c%c%c%c (0x%08x)\n", *((char *)&ctype), ((char *)&ctype)[1], 232 dprintf(c->fc, "ctype= %c%c%c%c (0x%08x)\n", *((char *)&ctype), ((char *)&ctype)[1],
233 ((char *)&ctype)[2], ((char *)&ctype)[3], (int) ctype); 233 ((char *)&ctype)[2], ((char *)&ctype)[3], (int) ctype);
234 dprintf(c->fc, "stype= %c%c%c%c\n", 234 dprintf(c->fc, "stype= %c%c%c%c\n",
235 *((char *)&type), ((char *)&type)[1], ((char *)&type)[2], ((char *)&type)[3]); 235 *((char *)&type), ((char *)&type)[1], ((char *)&type)[2], ((char *)&type)[3]);
236 if(!ctype) 236
237 c->isom = 1;
238 if (type == MKTAG('v','i','d','e')) 237 if (type == MKTAG('v','i','d','e'))
239 st->codec->codec_type = CODEC_TYPE_VIDEO; 238 st->codec->codec_type = CODEC_TYPE_VIDEO;
240 else if(type == MKTAG('s','o','u','n')) 239 else if(type == MKTAG('s','o','u','n'))
241 st->codec->codec_type = CODEC_TYPE_AUDIO; 240 st->codec->codec_type = CODEC_TYPE_AUDIO;
242 else if(type == MKTAG('m','1','a',' ')) 241 else if(type == MKTAG('m','1','a',' '))