$OpenBSD$

Index: encode/h264encode.c
--- encode/h264encode.c.orig
+++ encode/h264encode.c
@@ -181,6 +181,10 @@ struct __bitstream {
 };
 typedef struct __bitstream bitstream;
 
+#ifdef __OpenBSD__
+#include <sys/endian.h>
+#define va_swap32(x) swap32(x)
+#else
 static unsigned int 
 va_swap32(unsigned int val)
 {
@@ -191,6 +195,7 @@ va_swap32(unsigned int val)
             (pval[2] << 8)      |
             (pval[3] << 0));
 }
+#endif /* __OpenBSD__ */
 
 static void
 bitstream_start(bitstream *bs)
