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 mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".