$OpenBSD$

Index: encode/mpeg2vaenc.c
--- encode/mpeg2vaenc.c.orig
+++ encode/mpeg2vaenc.c
@@ -162,6 +162,9 @@ struct __bitstream {
 
 typedef struct __bitstream bitstream;
 
+#ifdef __OpenBSD__
+#include <sys/endian.h>
+#else
 static unsigned int 
 swap32(unsigned int val)
 {
@@ -172,6 +175,7 @@ swap32(unsigned int val)
             (pval[2] << 8)      |
             (pval[3] << 0));
 }
+#endif /* __OpenBSD__ */
 
 static void
 bitstream_start(bitstream *bs)
