aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorTong Wu <tong1.wu-at-intel.com@ffmpeg.org>2023-03-16 13:32:58 +0800
committerZhao Zhili <zhilizhao@tencent.com>2023-03-16 22:52:41 +0800
commitc3a79990996e1edbce78ebad5d69a9b88a88d0a6 (patch)
tree041ac130abccfb9aa1d848037ff790aa3b86a200 /libavformat/movenc.c
parent85b185b504759c794d872ade303bb9be4f79cdcc (diff)
downloadffmpeg-c3a79990996e1edbce78ebad5d69a9b88a88d0a6.tar.gz
avformat/mov: fix 2 compile errors
Compiler: MSVC 14.35.32215 Error type: error C2059: syntax error: '}' Related commit: 9e1ffed fate/mov: add PCM in mp4 test d7e8643 avformat/mov: parse ISO-14496-12 ChannelLayout Signed-off-by: Tong Wu <tong1.wu@intel.com> Signed-off-by: Zhao Zhili <zhilizhao@tencent.com> Reviewed-by: Haihao Xiang <haihao.xiang@intel.com>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
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));