[FFmpeg-devel] [PATCH] sonic: use s->channels instead of avctx->channels

Michael Niedermayer michaelni at gmx.at
Tue Jun 9 22:30:33 CEST 2015


On Tue, Jun 09, 2015 at 10:22:05PM +0200, Andreas Cadhalpun wrote:
> avctx->channels can be 0, causing SIGFPE crashes.
> 
> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
> ---
>  libavcodec/sonic.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

i think avctx->channels should be set, channels is only set during
init and cannot change per frame in sonic
maybe avctx->channels could be set during init

Thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150609/6dfc9ee9/attachment.asc>


More information about the ffmpeg-devel mailing list