Commit b9f2f932 authored by Aaron Colwell's avatar Aaron Colwell Committed by James Almer

mov: Fix spherical metadata_source parsing

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 62942477
...@@ -4566,7 +4566,7 @@ static int mov_read_sv3d(MOVContext *c, AVIOContext *pb, MOVAtom atom) ...@@ -4566,7 +4566,7 @@ static int mov_read_sv3d(MOVContext *c, AVIOContext *pb, MOVAtom atom)
} }
size = avio_rb32(pb); size = avio_rb32(pb);
if (size > atom.size) if (size <= 12 || size > atom.size)
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
tag = avio_rl32(pb); tag = avio_rl32(pb);
...@@ -4575,7 +4575,7 @@ static int mov_read_sv3d(MOVContext *c, AVIOContext *pb, MOVAtom atom) ...@@ -4575,7 +4575,7 @@ static int mov_read_sv3d(MOVContext *c, AVIOContext *pb, MOVAtom atom)
return 0; return 0;
} }
avio_skip(pb, 4); /* version + flags */ 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); size = avio_rb32(pb);
if (size > atom.size) if (size > atom.size)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment