Re: [FFmpeg-devel] [PATCH] s302m: fix arithmetic exception

2015-06-26 Thread Andreas Cadhalpun
On 26.06.2015 23:04, Michael Niedermayer wrote: > On Fri, Jun 26, 2015 at 07:38:40PM +0200, Andreas Cadhalpun wrote: >> s302m.c |6 ++ >> 1 file changed, 2 insertions(+), 4 deletions(-) >> 520ac68a80950ff219ae396182eb56679c46ee64 >> 0001-s302m-fix-arithmetic-exception.patch >> From 20bca

Re: [FFmpeg-devel] [PATCH] s302m: fix arithmetic exception

2015-06-26 Thread Michael Niedermayer
On Fri, Jun 26, 2015 at 07:38:40PM +0200, Andreas Cadhalpun wrote: > On 26.06.2015 01:27, Michael Niedermayer wrote: > > On Fri, Jun 26, 2015 at 12:05:09AM +0200, Andreas Cadhalpun wrote: > >> If 'buf_size * 8' is smaller than 'avctx->channels * > >> (avctx->bits_per_raw_sample + 4)' it resulted in

Re: [FFmpeg-devel] [PATCH] s302m: fix arithmetic exception

2015-06-26 Thread Andreas Cadhalpun
On 26.06.2015 01:27, Michael Niedermayer wrote: > On Fri, Jun 26, 2015 at 12:05:09AM +0200, Andreas Cadhalpun wrote: >> If 'buf_size * 8' is smaller than 'avctx->channels * >> (avctx->bits_per_raw_sample + 4)' it resulted in a division by zero. >> >> Signed-off-by: Andreas Cadhalpun >> --- >> lib

Re: [FFmpeg-devel] [PATCH] s302m: fix arithmetic exception

2015-06-25 Thread Michael Niedermayer
On Fri, Jun 26, 2015 at 12:05:09AM +0200, Andreas Cadhalpun wrote: > If 'buf_size * 8' is smaller than 'avctx->channels * > (avctx->bits_per_raw_sample + 4)' it resulted in a division by zero. > > Signed-off-by: Andreas Cadhalpun > --- > libavcodec/s302m.c | 6 +++--- > 1 file changed, 3 inserti

[FFmpeg-devel] [PATCH] s302m: fix arithmetic exception

2015-06-25 Thread Andreas Cadhalpun
If 'buf_size * 8' is smaller than 'avctx->channels * (avctx->bits_per_raw_sample + 4)' it resulted in a division by zero. Signed-off-by: Andreas Cadhalpun --- libavcodec/s302m.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/s302m.c b/libavcodec/s302m.c inde