From patchwork Sun Nov 6 15:08:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Lhomme X-Patchwork-Id: 39197 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:999a:b0:a4:2148:650a with SMTP id ve26csp1599545pzb; Sun, 6 Nov 2022 07:09:31 -0800 (PST) X-Google-Smtp-Source: AMsMyM4aeXzjH2cu3wY2FVS/OFXiJrZIvZfvrI6FMiLZkIxlNFpHrG+O3O19aO4ExBCZWMfyCizo X-Received: by 2002:a17:906:6791:b0:78d:4051:fcf0 with SMTP id q17-20020a170906679100b0078d4051fcf0mr43395547ejp.591.1667747371016; Sun, 06 Nov 2022 07:09:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667747371; cv=none; d=google.com; s=arc-20160816; b=q8rZr4AfkmsvIAES9VtDrKAYoA5lFg/38TMHtSBhXGvsze6gi1e5XMvmtuqazvIHa1 qO0Ci/Rzuy+FmAwyFoTaWjavQb3qZz0WzLcPvKKRoz1T5LRmOo0ZS+nonN5A88VNSels r3tQcnbS6JPcWkTyWRgAED4qRvmcpkcJKGihPkDThpnKZ+lW2thzM3EU+RQkNQQe+0fM 9fftonfr6uv4h+Qo5OojIpQvvIq4nL0hfZNWJOH5ZeI+lK8W+VUsmPOY4dv+qB1C8Ls3 4lZie2EAmBi6xe1sC5xs9nzcVGpST7Opaa8d17V3VV9RK+F0Nez1xAPOIQX5GQuLyoKO 2fkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding: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=tRLo62LZH97Th4/mVtFDssYY+ViXbQ6UU6bLJ3ZGhNE=; b=WbLZ3L05czPHQa2OXcs+MJiTNUkx1SIgy1v0pXaXzKSn5uR6honwlYFxHlsPuLUUwt w1IuSQWT09mfVcM4ymj9w60Q80QP7v9xxNvWNgfVhIMu2+txDU/RN+gzB4HxmpTr4E+5 5Kueam0MIdV8KwARdZW1PpdBnv7y6hGTf02SzA4qjYl1gvL+zo5sKPri3HQGBqq5bStt AGeFVqpxfl6t5TRhcYAlBaJ9Q6oMKk5ZZQBRuk1bcQUWzPC5exRbEDYLNDjYcAnS2/77 4Eu4IGRdL6edhtHR6mU6j72YjJ8UIYifJINfdSiaPn/VtALzPzZ/p1DeTBUaOzswvKdq 8Ckw== 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 fg14-20020a056402548e00b004608c0b9a8asi6379756edb.201.2022.11.06.07.09.30; Sun, 06 Nov 2022 07:09:31 -0800 (PST) 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 4F76668B859; Sun, 6 Nov 2022 17:09:09 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3CFBE68B680 for ; Sun, 6 Nov 2022 17:08:59 +0200 (EET) Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4N4yS92bSKz9slV for ; Sun, 6 Nov 2022 16:08:57 +0100 (CET) From: Steve Lhomme To: ffmpeg-devel@ffmpeg.org Date: Sun, 6 Nov 2022 16:08:43 +0100 Message-Id: <20221106150854.9528-2-robux4@ycbcr.xyz> In-Reply-To: <20221106150854.9528-1-robux4@ycbcr.xyz> References: <20221106150854.9528-1-robux4@ycbcr.xyz> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4N4yS92bSKz9slV Subject: [FFmpeg-devel] [PATCH 01/12] avformat/matroskadec: fix the default of the TagDefault element 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: pe/8vXKFMS41 By default a tag is the default one. --- libavformat/matroskadec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index d582f566a2..9e756bb030 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -703,8 +703,8 @@ static EbmlSyntax matroska_simpletag[] = { { MATROSKA_ID_TAGNAME, EBML_UTF8, 0, 0, offsetof(MatroskaTag, name) }, { MATROSKA_ID_TAGSTRING, EBML_UTF8, 0, 0, offsetof(MatroskaTag, string) }, { MATROSKA_ID_TAGLANG, EBML_STR, 0, 0, offsetof(MatroskaTag, lang), { .s = "und" } }, - { MATROSKA_ID_TAGDEFAULT, EBML_UINT, 0, 0, offsetof(MatroskaTag, def) }, - { MATROSKA_ID_TAGDEFAULT_BUG, EBML_UINT, 0, 0, offsetof(MatroskaTag, def) }, + { MATROSKA_ID_TAGDEFAULT, EBML_UINT, 0, 0, offsetof(MatroskaTag, def), { .u = 1 } }, + { MATROSKA_ID_TAGDEFAULT_BUG, EBML_UINT, 0, 0, offsetof(MatroskaTag, def), { .u = 1 } }, { MATROSKA_ID_SIMPLETAG, EBML_NEST, 0, sizeof(MatroskaTag), offsetof(MatroskaTag, sub), { .n = matroska_simpletag } }, CHILD_OF(matroska_tag) };