1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-08 23:06:56 +00:00
freebsd-ports/graphics/mpeg2codec/files/patch-ab
Eric L. Hernes f617349ad3 upgrade to v 1.2
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>,
              with minor mods by me
1996-12-09 15:37:29 +00:00

24 lines
567 B
Plaintext

--- ./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]);