Re: [FFmpeg-devel] [PATCH 03/17] avcodec/avcodec: Check for more invalid channel layouts

2022-09-20 Thread James Almer
On 9/18/2022 5:27 PM, Andreas Rheinhardt wrote: In particular, check the provided channel layout for encoders without AVCodec.ch_layouts set. This fixes an infinite loop in the WavPack encoder (and maybe other issues in other encoders as well) in case the channel count is zero. Signed-off-by: An

[FFmpeg-devel] [PATCH 03/17] avcodec/avcodec: Check for more invalid channel layouts

2022-09-18 Thread Andreas Rheinhardt
In particular, check the provided channel layout for encoders without AVCodec.ch_layouts set. This fixes an infinite loop in the WavPack encoder (and maybe other issues in other encoders as well) in case the channel count is zero. Signed-off-by: Andreas Rheinhardt --- libavcodec/avcodec.c | 11 +