hedgewars/avwrapper/avwrapper.c
changeset 11316 516e9b1ac889
parent 11300 f9fa0d6dc69f
child 11347 f830c080aa9d
--- a/hedgewars/avwrapper/avwrapper.c	Sat Nov 07 13:15:06 2015 +0100
+++ b/hedgewars/avwrapper/avwrapper.c	Sat Nov 07 15:07:33 2015 +0100
@@ -302,13 +302,7 @@
 #endif
 
     // open the codec
-#if LIBAVCODEC_VERSION_MAJOR >= 53
-    AVDictionary* pDict = NULL;
-    if (strcmp(g_pVCodec->name, "libx264") == 0)
-        av_dict_set(&pDict, "preset", "medium", 0);
-#endif
-
-    if (avcodec_open2(g_pVideo, g_pVCodec, &pDict) < 0)
+    if (avcodec_open2(g_pVideo, g_pVCodec, NULL) < 0)
         return FatalError("Could not open video codec %s", g_pVCodec->long_name);
 
     g_pVFrame = av_frame_alloc();