diff options
Diffstat (limited to 'multimedia/mpeg2codec/files/patch-src_mpeg2enc_mpeg2enc.c')
-rw-r--r-- | multimedia/mpeg2codec/files/patch-src_mpeg2enc_mpeg2enc.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/multimedia/mpeg2codec/files/patch-src_mpeg2enc_mpeg2enc.c b/multimedia/mpeg2codec/files/patch-src_mpeg2enc_mpeg2enc.c new file mode 100644 index 000000000000..b0f6df0ce9fb --- /dev/null +++ b/multimedia/mpeg2codec/files/patch-src_mpeg2enc_mpeg2enc.c @@ -0,0 +1,23 @@ +--- ./src/mpeg2enc/mpeg2enc.c 1996/11/25 21:18:23 1.1 ++++ ./src/mpeg2enc/mpeg2enc.c 1996/11/25 21:22:40 +@@ -29,6 +29,7 @@ + + #include <stdio.h> + #include <stdlib.h> ++#include <floatingpoint.h> + + #define GLOBAL /* used by global.h */ + #include "config.h" +@@ -50,6 +51,12 @@ + printf("Usage: mpeg2encode in.par out.m2v\n"); + exit(0); + } ++ ++ /* ++ * this prevents a floating point exception in calcSNR (stats.c) when ++ * working on black and white images (charnier@lirmm.fr) ++ */ ++ fpsetmask(0); + + /* read parameter file */ + readparmfile(argv[1]); |