Browse Source

mov: Fix spherical metadata_source parsing

Signed-off-by: James Almer <jamrial@gmail.com>
tags/n4.0
Aaron Colwell Vittorio Giovara 8 years ago
parent
commit
17adcc40ad
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/mov.c

+ 2
- 2
libavformat/mov.c View File

@@ -3252,7 +3252,7 @@ static int mov_read_sv3d(MOVContext *c, AVIOContext *pb, MOVAtom atom)
}

size = avio_rb32(pb);
if (size > atom.size)
if (size <= 12 || size > atom.size)
return AVERROR_INVALIDDATA;

tag = avio_rl32(pb);
@@ -3261,7 +3261,7 @@ static int mov_read_sv3d(MOVContext *c, AVIOContext *pb, MOVAtom atom)
return 0;
}
avio_skip(pb, 4); /* version + flags */
avio_skip(pb, avio_r8(pb)); /* metadata_source */
avio_skip(pb, size - 12); /* metadata_source */

size = avio_rb32(pb);
if (size > atom.size)


Loading…
Cancel
Save