freebsd-ports/graphics/gephex/files/patch-modules__src__frbinmodule__ffmpegdriver.cpp
Martin Wilke 53595e298c - Update to 0.4.4
PR:		126425
Submitted by:	Ports Fury
2008-08-11 22:41:43 +00:00

35 lines
861 B
C++

--- modules/src/frbinmodule/ffmpegdriver.cpp.orig 2007-04-29 23:53:43.000000000 +0900
+++ modules/src/frbinmodule/ffmpegdriver.cpp 2008-08-09 19:14:24.000000000 +0900
@@ -20,6 +20,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*/
+#define __STDC_CONSTANT_MACROS
+
#include "ffmpegdriver.h"
#include <string>
@@ -35,9 +37,12 @@
#define EMULATE_INTTYPES
#endif
-#include "avformat.h"
-#include "avcodec.h"
-#include "avutil.h"
+extern "C"
+{
+#include "avformat.h"
+#include "avcodec.h"
+#include "avutil.h"
+}
#include "libscale.h"
@@ -239,7 +244,6 @@
AVFormatParameters params;
memset(&params, 0, sizeof(params));
- params.image_format = 0;
params.initial_pause = 1;
// open input file without format or bufffer size