[Ffmpeg-cvslog] CVS: ffmpeg/libavformat audio.c,1.23,1.24

Michael Niedermayer CVS michael
Mon May 9 15:24:26 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv9999/libavformat

Modified Files:
	audio.c 
Log Message:
OpenBSD support patch by (Jacob Meuser // jakemsr jakemsr com)


Index: audio.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/audio.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- audio.c	19 Jun 2004 03:59:34 -0000	1.23
+++ audio.c	9 May 2005 13:24:23 -0000	1.24
@@ -21,7 +21,11 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#ifdef __OpenBSD__
+#include <soundcard.h>
+#else
 #include <sys/soundcard.h>
+#endif
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
@@ -49,7 +53,11 @@
 
     /* open linux audio device */
     if (!audio_device)
+#ifdef __OpenBSD__
+	audio_device = "/dev/sound";
+#else
         audio_device = "/dev/dsp";
+#endif
 
     if (is_output)
         audio_fd = open(audio_device, O_WRONLY);





More information about the ffmpeg-cvslog mailing list