mirror of https://git.ffmpeg.org/ffmpeg.git
do not set isom if ctype is not set, happens in mov
Originally committed as revision 17998 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
170e6b14f7
commit
2229a5c60e
|
@ -233,8 +233,7 @@ static int mov_read_hdlr(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
|
||||||
((char *)&ctype)[2], ((char *)&ctype)[3], (int) ctype);
|
((char *)&ctype)[2], ((char *)&ctype)[3], (int) ctype);
|
||||||
dprintf(c->fc, "stype= %c%c%c%c\n",
|
dprintf(c->fc, "stype= %c%c%c%c\n",
|
||||||
*((char *)&type), ((char *)&type)[1], ((char *)&type)[2], ((char *)&type)[3]);
|
*((char *)&type), ((char *)&type)[1], ((char *)&type)[2], ((char *)&type)[3]);
|
||||||
if(!ctype)
|
|
||||||
c->isom = 1;
|
|
||||||
if (type == MKTAG('v','i','d','e'))
|
if (type == MKTAG('v','i','d','e'))
|
||||||
st->codec->codec_type = CODEC_TYPE_VIDEO;
|
st->codec->codec_type = CODEC_TYPE_VIDEO;
|
||||||
else if(type == MKTAG('s','o','u','n'))
|
else if(type == MKTAG('s','o','u','n'))
|
||||||
|
|
Loading…
Reference in New Issue