|
|
@@ -785,6 +785,12 @@ static int mov_read_moov(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
|
|
{ |
|
|
{ |
|
|
int ret; |
|
|
int ret; |
|
|
|
|
|
|
|
|
|
|
|
if (c->found_moov) { |
|
|
|
|
|
av_log(c->fc, AV_LOG_WARNING, "Found duplicated MOOV Atom. Skipped it\n"); |
|
|
|
|
|
avio_skip(pb, atom.size); |
|
|
|
|
|
return 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if ((ret = mov_read_default(c, pb, atom)) < 0) |
|
|
if ((ret = mov_read_default(c, pb, atom)) < 0) |
|
|
return ret; |
|
|
return ret; |
|
|
/* we parsed the 'moov' atom, we can terminate the parsing as soon as we find the 'mdat' */ |
|
|
/* we parsed the 'moov' atom, we can terminate the parsing as soon as we find the 'mdat' */ |
|
|
|