Re: [FFmpeg-devel] [PATCH v2 6/8] avformat/mov: parse ISO-14496-12 ChannelLayout

2023-02-27 Thread Tomas Härdin
lör 2023-02-25 klockan 02:28 +0800 skrev Zhao Zhili: > > +    if (!layout) { > +    uint8_t *positions = av_malloc(st->codecpar- > >ch_layout.nb_channels); Could be allocated on the stack, either using a fixed-size array, a VLA or alloca(), thus avoiding a heap allocation /Tomas ___

[FFmpeg-devel] [PATCH v2 6/8] avformat/mov: parse ISO-14496-12 ChannelLayout

2023-02-24 Thread Zhao Zhili
From: Zhao Zhili Signed-off-by: Zhao Zhili --- libavformat/mov.c | 85 +++- libavformat/mov_chan.c | 296 + libavformat/mov_chan.h | 26 3 files changed, 406 insertions(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mo