ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Sat Mar  2 16:05:45 
2024 -0300| [8f33d8fa9b116b7700e213edfb9f0a6c98834779] | committer: James Almer

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 <jamr...@gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8f33d8fa9b116b7700e213edfb9f0a6c98834779
---

 libavformat/mov.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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;
             }
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to