[FFmpeg-cvslog] avformat/mov: fix 2 compile errors
Tong Wu
git at videolan.org
Thu Mar 16 08:56:13 EET 2023
ffmpeg | branch: master | Tong Wu <tong1.wu-at-intel.com at ffmpeg.org> | Thu Mar 16 13:32:58 2023 +0800| [c3a79990996e1edbce78ebad5d69a9b88a88d0a6] | committer: Zhao Zhili
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 at intel.com>
Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>
Reviewed-by: Haihao Xiang <haihao.xiang at intel.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c3a79990996e1edbce78ebad5d69a9b88a88d0a6
---
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));
More information about the ffmpeg-cvslog
mailing list