Re: [FFmpeg-devel] [PATCH 3/4] softfloat: fix av_add_sf if one argument is zero

2015-11-08 Thread Andreas Cadhalpun
On 08.11.2015 00:54, Michael Niedermayer wrote: > On Sun, Nov 08, 2015 at 12:08:54AM +0100, Andreas Cadhalpun wrote: >> Otherwise (0x2000, 1) + (0, 33) gives (0, 33), i.e. 1 + 0 = 0. >> >> This fixes a division by zero in the aac_fixed decoder. >> >> Signed-off-by: Andreas Cadhalpun >> --- >>

Re: [FFmpeg-devel] [PATCH 3/4] softfloat: fix av_add_sf if one argument is zero

2015-11-07 Thread Michael Niedermayer
On Sun, Nov 08, 2015 at 12:08:54AM +0100, Andreas Cadhalpun wrote: > Otherwise (0x2000, 1) + (0, 33) gives (0, 33), i.e. 1 + 0 = 0. > > This fixes a division by zero in the aac_fixed decoder. > > Signed-off-by: Andreas Cadhalpun > --- > libavutil/softfloat.h | 4 +++- > 1 file changed, 3 in

[FFmpeg-devel] [PATCH 3/4] softfloat: fix av_add_sf if one argument is zero

2015-11-07 Thread Andreas Cadhalpun
Otherwise (0x2000, 1) + (0, 33) gives (0, 33), i.e. 1 + 0 = 0. This fixes a division by zero in the aac_fixed decoder. Signed-off-by: Andreas Cadhalpun --- libavutil/softfloat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavutil/softfloat.h b/libavutil/softfloa