lör 2023-02-25 klockan 02:28 +0800 skrev Zhao Zhili:
>
> +static int mov_write_chnl_tag(AVFormatContext *s, AVIOContext *pb,
> MOVTrack *track)
> +{
> + int64_t pos = avio_tell(pb);
> + int config = 0;
> + int ret;
> + uint8_t *speaker_pos = NULL;
Could also be allocated on the stack
From: Zhao Zhili
Signed-off-by: Zhao Zhili
---
libavformat/movenc.c | 48 +++-
1 file changed, 47 insertions(+), 1 deletion(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 3315057b88..058d3cd6d1 100644
--- a/libavformat/movenc.c
+++ b/l