Browse Source

libavformat/mov.c: Skipped duplicated MOOV atom

This should fix ticket 1378
 If we have parsed a moov atom, and found another one, just skip it.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Thierry Foucu Michael Niedermayer 12 years ago
parent
commit
38ce775eea
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      libavformat/mov.c

+ 6
- 0
libavformat/mov.c View File

@@ -785,6 +785,12 @@ static int mov_read_moov(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
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)
return ret;
/* we parsed the 'moov' atom, we can terminate the parsing as soon as we find the 'mdat' */


Loading…
Cancel
Save