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 3D84645B9B for ; Fri, 24 Mar 2023 15:52:53 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CD63868C848; Fri, 24 Mar 2023 17:52:44 +0200 (EET) Received: from mail-oa1-f47.google.com (mail-oa1-f47.google.com [209.85.160.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DF24C68C841 for ; Fri, 24 Mar 2023 17:52:38 +0200 (EET) Received: by mail-oa1-f47.google.com with SMTP id 586e51a60fabf-17ab3a48158so2175066fac.1 for ; Fri, 24 Mar 2023 08:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679673157; 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=T4/BES9eIUTJLP3oS/xMDY0p6DW+d6iJub22aeaKB28=; b=pPWiSqWGC1GLWbnuCjj6821lQbIb5Q1Lj3eARtAePbkGiHrt7RrSUP4a+2OSzrXXoz bYGM4+8Ijesa8ezyVZo4a6zLomVCqGCqfPi6BKe7gVm0Pu/ItgZl9pzlhveE4IQpPamH U8kYYJ6XPGFa+yjboMpBEV5OrJGLAowiU96LizEuAeoy1dF80QoRwKZOwl22fScO17m6 ux4esYmoGZDh1Z8vEhxKF+E5kEPYjPe1L1pJuRQmQhi1SRpsaWKujOG4/1dcdDKdoebi irWlNzNQS/QbSV5lXeTH7p5W7kq1aSU61OdIYK767shzDDK9T8YwGc7qTdRvu0p5IJiC nk+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679673157; 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=T4/BES9eIUTJLP3oS/xMDY0p6DW+d6iJub22aeaKB28=; b=PTB5N5X/74wFpV6cBV0m9hDIqf0x3BaMUFXS4ZsFnJx9AT7EYg7XQKULxJxpSUaWYK nuQ9i0T8Gapea2QtXhiGmCQphMuzrq186I+FJFfZc/wOu9j3OC5x+fu1C/S9v2RMdh9W t28Hf+BWYnSQ4E8hxVyZFaiV8ozTcVtmhhANENgMyTAf23rTkClBEu/AK5r3DQNuGotD rnDrHf8uI9IEJV9fHVDo09KybE9Pz2NT12qvX2jGlmhnnRc7WsVALDYEiDfIqaDoNScx 8/RkxQLd/Ai+HQBQevrWEOErH61TcEmMdD+WX5CcMsgdEYeTkxB+W1txM93tu9kCxIAN +gJQ== X-Gm-Message-State: AAQBX9ew/8Totr39G4x/eKQusfdYL/Pz+ikprF7K/f3GMe5wCq/HLm0D Arv/BdNrJ/aBhXXc7P4zAifSMpKNwe0= X-Google-Smtp-Source: AKy350aGEHo7eOMj1JK53wVGF2uYnliy0YsQaK5y0AyN8EzaZyUVvXzVLxy170938kTm6hVuei317w== X-Received: by 2002:a05:6871:9e:b0:17e:7512:5c89 with SMTP id u30-20020a056871009e00b0017e75125c89mr2746911oaa.1.1679673157341; Fri, 24 Mar 2023 08:52:37 -0700 (PDT) Received: from localhost.localdomain (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id yx24-20020a056871251800b0017eb6cc4609sm1475940oab.39.2023.03.24.08.52.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 08:52:37 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Fri, 24 Mar 2023 12:52:08 -0300 Message-Id: <20230324155213.3493-2-jamrial@gmail.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230324155213.3493-1-jamrial@gmail.com> References: <20230324155213.3493-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 2/7] avformat/matroskadec: set the default value for BlockAddIDType 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 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: Signed-off-by: James Almer --- libavformat/matroska.h | 4 ++++ libavformat/matroskadec.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libavformat/matroska.h b/libavformat/matroska.h index 45077ed33f..de63cdc7ae 100644 --- a/libavformat/matroska.h +++ b/libavformat/matroska.h @@ -358,6 +358,10 @@ typedef enum { MATROSKA_VIDEO_PROJECTION_TYPE_MESH = 3, } MatroskaVideoProjectionType; +typedef enum { + MATROSKA_BLOCK_ADD_ID_TYPE_DEFAULT = 0, +} MatroskaBlockAddIDType; + /* * Matroska Codec IDs, strings */ diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 60f9a78fe8..9581b19204 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -591,7 +591,7 @@ static EbmlSyntax matroska_track_operation[] = { static EbmlSyntax matroska_block_addition_mapping[] = { { MATROSKA_ID_BLKADDIDVALUE, EBML_UINT, 0, 0, offsetof(MatroskaBlockAdditionMapping, value) }, { MATROSKA_ID_BLKADDIDNAME, EBML_STR, 0, 0, offsetof(MatroskaBlockAdditionMapping, name) }, - { MATROSKA_ID_BLKADDIDTYPE, EBML_UINT, 0, 0, offsetof(MatroskaBlockAdditionMapping, type) }, + { MATROSKA_ID_BLKADDIDTYPE, EBML_UINT, 0, 0, offsetof(MatroskaBlockAdditionMapping, type), { .u = MATROSKA_BLOCK_ADD_ID_TYPE_DEFAULT } }, { MATROSKA_ID_BLKADDIDEXTRADATA, EBML_BIN, 0, 0, offsetof(MatroskaBlockAdditionMapping, extradata) }, CHILD_OF(matroska_track) }; -- 2.40.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".