diff options
author | James Almer <jamrial@gmail.com> | 2024-03-02 16:05:45 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-03-04 20:17:41 -0300 |
commit | 8f33d8fa9b116b7700e213edfb9f0a6c98834779 (patch) | |
tree | 3ebb06a7a547f77a0ab0c660b41e8a325a395d15 | |
parent | d78c75fe49a8b2eb6704a66b1a914b96bf9ad46b (diff) | |
download | ffmpeg-8f33d8fa9b116b7700e213edfb9f0a6c98834779.tar.gz |
avformat/mov: don't mark an item referenced by a grid as dependent if it's the primary item
If it's the primary item, then it's expected to be ready for presentation even
outside of the grid it belongs to.
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavformat/mov.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 7a09017020..f0e98f38b5 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -9443,7 +9443,8 @@ static int mov_parse_tiles(AVFormatContext *s) if (err < 0 && err != AVERROR(EEXIST)) return err; - st->disposition |= AV_DISPOSITION_DEPENDENT; + if (item->item_id != mov->primary_item_id) + st->disposition |= AV_DISPOSITION_DEPENDENT; break; } |