$OpenBSD$
--- metadata.c.orig	Fri Jun 29 22:11:29 2012
+++ metadata.c	Sat Sep 22 01:45:30 2012
@@ -19,6 +19,7 @@
 #include <ctype.h>
 #include <string.h>
 #include <stdlib.h>
+#include <libgen.h>
 #include <sys/stat.h>
 
 #include <unistd.h>
@@ -116,14 +117,6 @@ lav_close(AVFormatContext *ctx)
 	av_close_input_file(ctx);
 #endif
 }
-
-#if LIBAVFORMAT_VERSION_INT >= ((52<<16)+(31<<8)+0)
-# if LIBAVUTIL_VERSION_INT < ((51<<16)+(5<<8)+0)
-#define AV_DICT_IGNORE_SUFFIX AV_METADATA_IGNORE_SUFFIX
-#define av_dict_get av_metadata_get
-typedef AVMetadataTag AVDictionaryEntry;
-# endif
-#endif
 
 /* This function shamelessly copied from libdlna */
 #define MPEG_TS_SYNC_CODE 0x47
