Message ID | 20240302190545.1881-1-jamrial@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] avformat/mov: don't mark an item referenced by a grid as dependent if it's the primary item | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavformat/mov.c b/libavformat/mov.c index e07f2a1ada..874c61b44d 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; }
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> --- libavformat/mov.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)