From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 8BDC847BDD for ; Tue, 3 Oct 2023 23:05:08 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 88FED68CB99; Wed, 4 Oct 2023 02:05:05 +0300 (EEST) Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EC6B768CAB5 for ; Wed, 4 Oct 2023 02:04:58 +0300 (EEST) Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-d918aef0d0dso584610276.3 for ; Tue, 03 Oct 2023 16:04:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696374297; x=1696979097; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=qlWf6tC1xCPT0bGTCBmmcbx3UHb4r0dvvaI/ZGKlVus=; b=Tj16JuJ3fQXiz6Wh2qRB5IgTGnZBnt3mCYwcxjbP3awEIu1U33G4h/mAoH465V+QTM zqTwKbKk1gIV56BO77tJKCz1we99B31hG79mywDurUUuBqYBIpdkip/MNaLoc9pwBvGv oZERwHNxKkcZJk69lH59A1AcxzsKEbdGwdJfWtah73Ugm7I78q3/UKD5Fj/F5NBQrK7p 9u2Utzjyr2/9Kz2kGS3exJaSJLPg5HeM9CwqJTqx53A3acSg1/jmqnGu5sZw3Womd2mN +gDBRXvwBXVOhgPQnEMfK8Zb/rsUIHm0BDCFmu3iVeM2/i4fZ8w0emTZK7JkPI1E1sBf xYKw== X-Gm-Message-State: AOJu0Yyxmw2XiRw9wTwQ42z1tDnCU4HeU80saVGA+0Qwu2353efccu6n CqQXW0W41lzw5pee2GwZY9gMR12wvJRuj8M4vgpW2Yc71Nbd2KINeOz06jIsXvO0dPVQGN0T3FG oxaPexWfRmI2TvKO+4IsVdl4RNRoUcU+FoqA5QmnKtu8oZ+r7KojeRYxQZZ3453gYUj3E X-Google-Smtp-Source: AGHT+IGJ9s9XQ5DCAHZkM8zTCHeIshvb1RbYX96gK0eRloghrSjzr9X4q8Off4siShqLG2yQ9nmybEmo8zsLbg== X-Received: from vigneshv3.mtv.corp.google.com ([2620:0:1000:2511:e58:8b17:6065:ec86]) (user=vigneshv job=sendgmr) by 2002:a05:6902:212:b0:d89:b072:d06f with SMTP id j18-20020a056902021200b00d89b072d06fmr11839ybs.7.1696374297283; Tue, 03 Oct 2023 16:04:57 -0700 (PDT) Date: Tue, 3 Oct 2023 16:04:19 -0700 Mime-Version: 1.0 X-Mailer: git-send-email 2.42.0.582.g8ccd20d70d-goog Message-ID: <20231003230423.951161-1-vigneshv@google.com> To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH] avformat/mov: Disallow more than one meta box for AVIF 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: , From: Vignesh Venkatasubramanian via ffmpeg-devel Reply-To: FFmpeg development discussions and patches Cc: Vignesh Venkatasubramanian Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: This is not allowed per the spec. Signed-off-by: Vignesh Venkatasubramanian --- libavformat/mov.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index 294c864fbd..a8f57f9281 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -4892,6 +4892,8 @@ static int avif_add_stream(MOVContext *c, int item_id) { MOVStreamContext *sc; AVStream *st; + if (c->fc->nb_streams) + return AVERROR_INVALIDDATA; int item_index = -1; for (int i = 0; i < c->avif_info_size; i++) if (c->avif_info[i].item_id == item_id) { -- 2.42.0.582.g8ccd20d70d-goog _______________________________________________ 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".