From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ffmpeg-devel-bounces@ffmpeg.org>
Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100])
	by master.gitmailbox.com (Postfix) with ESMTP id 1406349B41
	for <ffmpegdev@gitmailbox.com>; Sun,  3 Mar 2024 18:10:35 +0000 (UTC)
Received: from [127.0.1.1] (localhost [127.0.0.1])
	by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6EDEB68D3CA;
	Sun,  3 Mar 2024 20:09:51 +0200 (EET)
Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com
 [209.85.216.53])
 by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F2B5F68D3C0
 for <ffmpeg-devel@ffmpeg.org>; Sun,  3 Mar 2024 20:09:44 +0200 (EET)
Received: by mail-pj1-f53.google.com with SMTP id
 98e67ed59e1d1-29a2545a1e7so2502948a91.2
 for <ffmpeg-devel@ffmpeg.org>; Sun, 03 Mar 2024 10:09:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1709489382; x=1710094182; darn=ffmpeg.org;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=coN1CdswZNYdrlVVGxkiEuXQYl5ixBNd50Eo6Qdd0UU=;
 b=P5+aizwHC7VlUkeNvimD2PGlR64SOmvZoB7HRhiJD6xk/5zRAyI1Pvt6Z5NgIzLIp3
 R9hMrlXkoHdhuid8B96Gl3h6VFhzKbOmj2FMrMDvUCJHHz3xf7YvxMzysQ/g4qhpcpRf
 Sa8l7/BvBWtP0FRJKkRaxOYqPBLydqZ3jb6mGeSGaaBgBqzUudfqO2tgtnoPsG8n6QMl
 TXRpHtPiuBC2vtX+bAVGG+iJjOcEd1EkwtEZ5lr8FtRDy73YlYk78GFv1oxGcrdtZ2aR
 ieCR+Ej7P4nwgu9ohDImYNpfOElI2mcoi4eNRK/sJaPpmSa5jmOWFQrfLxcUgKfXvfOd
 jJDA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1709489382; x=1710094182;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=coN1CdswZNYdrlVVGxkiEuXQYl5ixBNd50Eo6Qdd0UU=;
 b=j4TwndKEeWnbv7lFukClkq1NmQ9XNUbmG1RRUxNF1oXLa8hpnxCH8pU9UEwKTTdVWy
 5cNBjRdndLY3UC6TS9OnBEr1fc+I03rwMoM/SL9hW9j6O5TqlYsTuX3zCFeloAzE6zTJ
 bA9wJz8+f/MI93KZWiRKNB5fMXSAO/0j6tzoIVsI55x0vWYnLqGRkUprsm6bLbE5j04c
 V0vnU1nbgaJ7WNwjY4RpcXbp1yMhaVOycQFAJZKkkhjnU3Y3lAgD7Hr/UNDV1CLqmVZE
 83bErnO/C8dIso1owLzo3fVNPtnMfall4FIS3ABEI30+mC355y39hy4oWyPdUNvI8TB+
 eGjw==
X-Gm-Message-State: AOJu0YzxS28pfvOmvCbsOB8rBA7hALAHHfiYCAdfIu++T83ahfNUNKY5
 zXRpHX8qSfJOmfcN7QgqGtq7zGHo3Jfq73ooEHCfheJy36LP/+q1ujPI8tBu
X-Google-Smtp-Source: AGHT+IEgT5MAdOoUvG1yEAP9npfUT3CeoJGXulMd9lSb6j2KSGBoviV2ULKBa+HDIWoIdViZYTG15A==
X-Received: by 2002:a17:90b:790:b0:29b:1969:d573 with SMTP id
 l16-20020a17090b079000b0029b1969d573mr4650773pjz.22.1709489382423; 
 Sun, 03 Mar 2024 10:09:42 -0800 (PST)
Received: from localhost.localdomain ([190.194.169.124])
 by smtp.gmail.com with ESMTPSA id
 k9-20020a170902c40900b001db5ea825b2sm5511316plk.123.2024.03.03.10.09.40
 for <ffmpeg-devel@ffmpeg.org>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 03 Mar 2024 10:09:41 -0800 (PST)
From: James Almer <jamrial@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Date: Sun,  3 Mar 2024 15:09:24 -0300
Message-ID: <20240303180929.56930-6-jamrial@gmail.com>
X-Mailer: git-send-email 2.44.0
In-Reply-To: <20240303180929.56930-1-jamrial@gmail.com>
References: <20240303180929.56930-1-jamrial@gmail.com>
MIME-Version: 1.0
Subject: [FFmpeg-devel] [PATCH 6/8] avformat/mov: don't mark an item
 referenced by a grid as dependent if it's the primary item
X-BeenThere: ffmpeg-devel@ffmpeg.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org>
List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe>
List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel>
List-Post: <mailto:ffmpeg-devel@ffmpeg.org>
List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help>
List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe>
Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: ffmpeg-devel-bounces@ffmpeg.org
Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org>
Archived-At: <https://master.gitmailbox.com/ffmpegdev/20240303180929.56930-6-jamrial@gmail.com/>
List-Archive: <https://master.gitmailbox.com/ffmpegdev/>
List-Post: <mailto:ffmpegdev@gitmailbox.com>

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(-)

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

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

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