aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2024-06-11 16:24:31 +0100
committerJames Almer <jamrial@gmail.com>2024-07-07 12:38:57 -0300
commitc4ebdd8d2d7b9b8302f3a15aa1b81199553d4ee6 (patch)
tree19274f414fc0622544df0494d4af3b7acb5f9f66
parentc657c694e30f0c1ebc53d5bf5f7e303210503ab0 (diff)
downloadffmpeg-c4ebdd8d2d7b9b8302f3a15aa1b81199553d4ee6.tar.gz
avformat/mov: Mark streams with a layered HEVC box as multilayer
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavformat/mov.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 258913549a..d862434d25 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -8200,6 +8200,8 @@ static int mov_read_lhvc(MOVContext *c, AVIOContext *pb, MOVAtom atom)
st->codecpar->extradata[22] += num_arrays;
memcpy(st->codecpar->extradata + old_size, buf + 6, atom.size + 8);
+ st->disposition |= AV_DISPOSITION_MULTILAYER;
+
av_free(buf);
return 0;
}