From patchwork Mon Mar 14 18:49:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 34732 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6838:3486:0:0:0:0 with SMTP id ek6csp2414865nkb; Mon, 14 Mar 2022 11:50:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynzYeDSmcflQya5tn5iMYh6iBkvQ2L9paPgNPKUxqmRZwUUTNoMeWv+c33KJDMLgFTAhrG X-Received: by 2002:a05:6402:5171:b0:415:eed0:664a with SMTP id d17-20020a056402517100b00415eed0664amr22105748ede.117.1647283822344; Mon, 14 Mar 2022 11:50:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647283822; cv=none; d=google.com; s=arc-20160816; b=tpP/kmPSbZ7FJOcNk9ldK69wJrpyNLvgHg5hyADrnj/MG7RtroVEQV7IGRUY1SNFFf nChtRYW1maEkO5wTzUeORBCYdN8ux/Zjp7gkRRsn0UbHxH4+Yf5aNbqJHKEYjFUuh4CX YdC8JUUHUeoi2ooncVXgOhpFUje3UjG0CInKVdG/W8hHDZOM7tKv57GnP3WFxSBq4zb+ ViBzmAMmXXX0VS2fuA82TqzB3+4UdwYIGyP+ptOmpPHvcAZTmr8AQSoMv/NaoDMnswj0 0vaDSd05CzjOxXVhjG8u1sSzz9WH2Hn30fB+PqaX+qsSAXHLLkNyO55apjREw+CD5GeV E5Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:delivered-to; bh=qQBusIN5oCQF+SreEAzv3/PWSI8rN7Y0MrPELDVbJNI=; b=l58XtbvgvKk/jmpFieyoXrL+jvF2DfKTEv/YU8XJmI9C/yDWJ41nvdPLYh/7DxsoNo ZoHrrXFHz1prtL7Dkv3ni1UHu69RQM5req+SKO+f++L7l/FDlus3LKBHp5MEcqhX4VGa ZOgWgoVjIHACZ0+3xtM+FcILFM3EZtzyjTWvRlY2VELgyuEHYq9DrfCvLekqnNEcP6/8 hqa+yaWnV4fkR//YQBObS0DbNp7pyBRp+etKk/BA4p2Re5Ctm4f/c1FgL31eHXcXcNE8 wVEkjKVS4gp6ybAqt6zeydLBbByn2dTvifWj0Zk2SuRjxJ+QDOAL+OM32wWmZS/vMAbC ZTNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id sd14-20020a1709076e0e00b006db141db8absi11062316ejc.323.2022.03.14.11.50.21; Mon, 14 Mar 2022 11:50:22 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 151D368B120; Mon, 14 Mar 2022 20:50:08 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2DE8A68B08A for ; Mon, 14 Mar 2022 20:50:01 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 84BD9E67E2; Mon, 14 Mar 2022 19:50:01 +0100 (CET) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nNyXtuqTcXsV; Mon, 14 Mar 2022 19:49:59 +0100 (CET) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id E5BFAE24A8; Mon, 14 Mar 2022 19:49:58 +0100 (CET) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Mon, 14 Mar 2022 19:49:50 +0100 Message-Id: <20220314184950.640-2-cus@passwd.hu> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220314184950.640-1-cus@passwd.hu> References: <20220314184950.640-1-cus@passwd.hu> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] avformat/mxfenc: do not write index tables with the same InstanceUID X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Marton Balint Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 7vfe63wya9MB Only index tables repeating previous index tables should use the same InstaceUID. Use the index start position when generating the InstanceUID to fix this. Signed-off-by: Marton Balint --- libavformat/mxfenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index ba8e7babfb..5b972eadaa 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1757,7 +1757,7 @@ static void mxf_write_index_table_segment(AVFormatContext *s) // instance id mxf_write_local_tag(s, 16, 0x3C0A); - mxf_write_uuid(pb, IndexTableSegment, 0); + mxf_write_uuid(pb, IndexTableSegment, mxf->last_indexed_edit_unit); // index edit rate mxf_write_local_tag(s, 8, 0x3F0B);