[Libav-user] SWR_CH_MAX no more exists

Julien Durillon julien.durillon at clever-cloud.com
Sun Sep 21 15:26:35 CEST 2014


2014-09-21 15:12 GMT+02:00 wm4 <nfxjfg at googlemail.com>:
> The FFmpeg API doesn't impose any maximum channel number, so at least
> in theory, it could decode audio tracks with INT_MAX channels.

Ok, I understand it now.


> (Though it looks like libswsresample is still limited to 32 internally?)
>
> If a ffDiaporama needs a static channel limit, the right way is to:
>
> 1. define an application-specific constant for the max. channels
>    supported by it
> 2. when decoding or filtering, check if the channel number is not larger
>    than the supported number of channels, and if it is, exit with an
>    error
Ok, I'll discuss it with the ffDiaporama team. Thanks for the quick answer!



-- 
Julien Durillon
Clever Cloud
Tel : 06 09 15 00 49
I'm VSRE compliant (http://vsre.info/index.html)


More information about the Libav-user mailing list