$OpenBSD$

Index: encode/avcenc.c
--- encode/avcenc.c.orig
+++ encode/avcenc.c
@@ -1062,6 +1062,10 @@ get_coded_bitsteam_length(unsigned char *buffer, int b
 }
 #endif
 
+#ifdef __OpenBSD__
+#include <sys/endian.h>
+#define va_swap32(x) swap32(x)
+#else
 static unsigned int 
 va_swap32(unsigned int val)
 {
@@ -1072,6 +1076,7 @@ va_swap32(unsigned int val)
             (pval[2] << 8)      |
             (pval[3] << 0));
 }
+#endif /* __OpenBSD__ */
 
 static void
 bitstream_start(bitstream *bs)
