.include "../../multimedia/mjpegtools/buildlink3.mk"
.include "../../multimedia/x264-devel/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXv/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
$NetBSD$
SHA1 (patch-alsa_m4) = 6a15005a08efa0ae96a44b2e9118a121f31f3fa5
+SHA1 (patch-audiooss_C) = cd38e2cffdb3477732f929b41bf207d687ee008b
SHA1 (patch-configure_in) = d6166055b7f6f4c083a4b480fc16244b323513e9
+SHA1 (patch-ffmpeg_C) = ff62028269104f5ebc9973872cdaaf407aa64dde
+SHA1 (patch-filesystem_C) = 98591b4ea29f303469552763193cd049105e2644
SHA1 (patch-mpeg3ifo_c) = d0b9b7fbc16eeaa92f69d157c58485e6746f0eb9
SHA1 (patch-mpeg3io_c) = 49a8714c37b201581e7bc89eb073fdd3346a2b01
SHA1 (patch-mpeg3tocutil_c) = 8f5942d7cd8fbcb98748b0d8b04aa1c324f512f3
SHA1 (patch-qtffmpeg_c) = a4cd7fee7fc5d11f0ddb3bc728795ac0e3bc2734
SHA1 (patch-qtprivate_h) = 2c48c0719e4d5cad1ba8f9cfe03a9892ca49fe11
+SHA1 (patch-quantize_c) = 0c3062bf9357850e1d02a2456dff6c60254029f2
+SHA1 (patch-thread_C) = c11ffe8f2a0d7122dd2492fe4e40258212a3f62b
SHA1 (patch-util_c) = 82c9512cc995c62b9300dce02261517d5b296879
--- /dev/null
+$NetBSD$
+
+--- cinelerra/audiooss.C.orig 2010-01-29 07:11:32.000000000 +0000
++++ cinelerra/audiooss.C
+@@ -264,7 +264,7 @@ int AudioOSS::open_duplex()
+ // For the ice1712 the buffer must be maximum or no space will be allocated.
+ if(device->driver == AUDIO_OSS_ENVY24) buffer_info = 0x7fff000f;
+ if(ioctl(dsp_duplex[i], SNDCTL_DSP_SETFRAGMENT, &buffer_info)) printf("SNDCTL_DSP_SETFRAGMENT failed.\n");
+- if(ioctl(dsp_duplex[i], SNDCTL_DSP_SETDUPLEX, 1) == -1) printf("SNDCTL_DSP_SETDUPLEX failed\n");
++ if(ioctl(dsp_duplex[i], SNDCTL_DSP_SETDUPLEX, reinterpret_cast<void*>(1)) == -1) printf("SNDCTL_DSP_SETDUPLEX failed\n");
+ if(ioctl(dsp_duplex[i], SNDCTL_DSP_SETFMT, &format) < 0) printf("SNDCTL_DSP_SETFMT failed\n");
+ int channels = device->get_ochannels();
+ if(ioctl(dsp_duplex[i], SNDCTL_DSP_CHANNELS, &channels) < 0) printf("SNDCTL_DSP_CHANNELS failed\n");
--- /dev/null
+$NetBSD$
+
+--- cinelerra/ffmpeg.C.orig 2010-01-29 07:15:28.000000000 +0000
++++ cinelerra/ffmpeg.C
+@@ -2,7 +2,7 @@
+
+ #ifdef HAVE_SWSCALER
+ extern "C" {
+-#include <swscale.h>
++#include <libswscale/swscale.h>
+ }
+ #endif
+
+@@ -69,12 +69,10 @@ CodecID FFMPEG::codec_id(char *codec_str
+ PixelFormat FFMPEG::color_model_to_pix_fmt(int color_model) {
+ switch (color_model)
+ {
+- case BC_YUV422:
+- return PIX_FMT_YUV422;
+ case BC_RGB888:
+ return PIX_FMT_RGB24;
+ case BC_BGR8888: // NOTE: order flipped
+- return PIX_FMT_RGBA32;
++ return PIX_FMT_RGBA;
+ case BC_BGR888:
+ return PIX_FMT_BGR24;
+ case BC_YUV420P:
+@@ -95,11 +93,9 @@ PixelFormat FFMPEG::color_model_to_pix_f
+ int FFMPEG::pix_fmt_to_color_model(PixelFormat pix_fmt) {
+ switch (pix_fmt)
+ {
+- case PIX_FMT_YUV422:
+- return BC_YUV422;
+ case PIX_FMT_RGB24:
+ return BC_RGB888;
+- case PIX_FMT_RGBA32:
++ case PIX_FMT_RGBA:
+ return BC_BGR8888;
+ case PIX_FMT_BGR24:
+ return BC_BGR888;
+@@ -286,7 +282,7 @@ int FFMPEG::convert_cmodel(AVPicture *pi
+ // make an intermediate temp frame only if necessary
+ int cmodel_in = pix_fmt_to_color_model(pix_fmt_in);
+ if (cmodel_in == BC_TRANSPARENCY) {
+- if (pix_fmt_in == PIX_FMT_RGBA32) {
++ if (pix_fmt_in == PIX_FMT_RGBA) {
+ // avoid infinite recursion if things are broken
+ printf("FFMPEG::convert_cmodel pix_fmt_in broken!\n");
+ return 1;
--- /dev/null
+$NetBSD$
+
+--- guicast/filesystem.C.orig 2010-01-29 07:08:10.000000000 +0000
++++ guicast/filesystem.C
+@@ -393,7 +393,7 @@ int FileSystem::test_filter(FileItem *fi
+ int FileSystem::update(char *new_dir)
+ {
+ DIR *dirstream;
+- struct dirent64 *new_filename;
++ struct dirent *new_filename;
+ struct stat ostat;
+ struct tm *mod_time;
+ int i, j, k, include_this;
+@@ -408,7 +408,7 @@ int FileSystem::update(char *new_dir)
+ dirstream = opendir(current_dir);
+ if(!dirstream) return 1; // failed to open directory
+
+- while(new_filename = readdir64(dirstream))
++ while(new_filename = readdir(dirstream))
+ {
+ include_this = 1;
+
--- /dev/null
+$NetBSD$
+
+--- mpeg2enc/quantize.c.orig 2010-01-29 07:01:38.000000000 +0000
++++ mpeg2enc/quantize.c
+@@ -30,7 +30,6 @@
+ #include "config.h"
+ #include <stdio.h>
+ #include <math.h>
+-#include <fenv.h>
+ #include "global.h"
+ #include "cpu_accel.h"
+ #include "simd.h"
--- /dev/null
+$NetBSD$
+
+--- guicast/thread.C.orig 2010-01-29 07:09:38.000000000 +0000
++++ guicast/thread.C
+@@ -239,6 +239,6 @@ int Thread::get_realtime()
+
+ int Thread::get_tid()
+ {
+- return tid;
++ return reinterpret_cast<int>(tid);
+ }
+