From patchwork Thu Mar 16 04:40:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wu, Tong1" X-Patchwork-Id: 40696 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:d046:b0:cd:afd7:272c with SMTP id hv6csp3985529pzb; Wed, 15 Mar 2023 21:44:39 -0700 (PDT) X-Google-Smtp-Source: AK7set/nbiRgmOBxKwJqvghmMkmsh9lNJDtO8+t9n1wP4XDM1uJJpg5hDnJFVI0GUFGl6d4z+wN9 X-Received: by 2002:aa7:c515:0:b0:4fc:c7c8:e78e with SMTP id o21-20020aa7c515000000b004fcc7c8e78emr5000046edq.25.1678941878993; Wed, 15 Mar 2023 21:44:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678941878; cv=none; d=google.com; s=arc-20160816; b=V5wRotvrwaUTzMXBe1tAoqqbcoC5o/XDMRgoa+i64VittIY5dfh/eGCdZ1DyINtsOj Xc+NUpfQwHE6OsMBH4uph1EFCsAawpOL9A5FC+6ti2WUhqMOkMuHuDpmx8YB4TE0gqPd ehMAf5VP+7wP36knt9VeLXex0HD7rVve/+sG2+0TNKxNWBH3/aqec3gWuxTDkbqSluXr NAxMyiAf0+P9V0rfhJqq3lI6XTTxWY8A5eDAh7xDwTRYc+1z14Xa/ER2ZA7EjBvbc4IE zpgPRYh5hN3pSQvo4iPS4wT0e0w1Y0bNt8ZXviC/VeHx660lL5qQorRHDjEe1cmju4KN JWvg== 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:message-id:date:to:from :dkim-signature:delivered-to; bh=CTiyB0xizfFv0DVcJW95b7haIzlMup2WJu7Be3tQZug=; b=cCC68V5GlFOCiayCDyoHR1KepAffX64SN1vg3FKQSOXFriJlEjDrjtENAI7ODMnMF9 ZuKAiggbY8BGIAIRjfdd9YvZ937Y+Lq0gkWEpd+3vGl3qxDu3rWyiKpHUvvIEKKZzlIy nAIZGUZ0UT/FSbrJi4h0/qC3u6iI5mvrqtZgEmSTb+1VHxVnJUJuKGuj4Fl1CzdaTJk8 GFras9c/WbqKQC+GSu2XMiV0nc82SEGj3R0WsmA4GhQB3One3aERrVQ3x95VNDydoAHx 12j+w8yIHbwK0OkllMU1rkGcKo5w6frfU1BsV/SNOlvriXLcY/RRLLjRH5QcnVD+TYMp fyKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=iRWq06Dx; 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 g3-20020a056402180300b004c11df48b5fsi1336565edy.568.2023.03.15.21.44.38; Wed, 15 Mar 2023 21:44:38 -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; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=iRWq06Dx; 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 C8EF268BE35; Thu, 16 Mar 2023 06:44:35 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B1CB468A630 for ; Thu, 16 Mar 2023 06:44:28 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678941873; x=1710477873; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=A32puYoUDjPG3gipqC/ns3ks+OPWBJE6PVVQYiaHJss=; b=iRWq06DxME6Ub0fxDPuU51cMqt1P2PQTlenk1mpyatOS6Wxymjpof/W/ Tx+guM1K8PofTCPg4xdlnKXvmdA/p79GGwPw3Qzb1WP5wkCgsZIpg10u5 F599X0a3SpFLuVB6NUa+b1K1cNeC3QMFvnepHDBU3fHlgNaezgW3V1i3V G/uRagFsofRxKAdLt9WU7IDgcJYRustGWvjMpPhl6ooQrWVNLrjbe5ix+ li4rsaadz96gxY8m/Ns64skPK3Q1c4I7TFRmw3sAxWSzO9EWIOE6Ws0AL Fd3gCfxttjyzMIU0xFihEqFb6MWSvgHcwQUdEZVgiCcu6/i6SKlvuafVM Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10650"; a="318287406" X-IronPort-AV: E=Sophos;i="5.98,264,1673942400"; d="scan'208";a="318287406" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2023 21:44:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10650"; a="672993717" X-IronPort-AV: E=Sophos;i="5.98,264,1673942400"; d="scan'208";a="672993717" Received: from desktop-qn7n0nf.sh.intel.com (HELO localhost.localdomain) ([10.239.160.59]) by orsmga007.jf.intel.com with ESMTP; 15 Mar 2023 21:44:25 -0700 From: Tong Wu To: ffmpeg-devel@ffmpeg.org Date: Thu, 16 Mar 2023 12:40:32 +0800 Message-Id: <20230316044032.1749-1-tong1.wu@intel.com> X-Mailer: git-send-email 2.35.1.windows.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avformat/mov: fix 2 compile errors 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: Tong Wu Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: B2FiW8a+ghGh Signed-off-by: Tong Wu --- libavformat/mov_chan.c | 2 +- libavformat/movenc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/mov_chan.c b/libavformat/mov_chan.c index df17976e59..f3d51899e1 100644 --- a/libavformat/mov_chan.c +++ b/libavformat/mov_chan.c @@ -555,7 +555,7 @@ int ff_mov_read_chan(AVFormatContext *s, AVIOContext *pb, AVStream *st, /* ISO/IEC 23001-8, 8.2 */ static const AVChannelLayout iso_channel_configuration[] = { // 0: any setup - {}, + {0}, // 1: centre front AV_CHANNEL_LAYOUT_MONO, diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 2ec575c954..68e7f8222b 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1194,7 +1194,7 @@ static int mov_write_chnl_tag(AVFormatContext *s, AVIOContext *pb, MOVTrack *tra ret = ff_mov_get_channel_positions_from_layout(layout, speaker_pos, layout->nb_channels); if (ret) { - char buf[128] = {}; + char buf[128] = {0}; av_freep(&speaker_pos); av_channel_layout_describe(layout, buf, sizeof(buf));