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 D509A45AEC for ; Thu, 16 Mar 2023 04:44:38 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8DBB168BE31; Thu, 16 Mar 2023 06:44:35 +0200 (EET) 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 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: 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)); -- 2.35.1.windows.2 _______________________________________________ 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".