videorec: Drop setting x264 preset 0.9.22
authorkoda
Sat, 07 Nov 2015 15:07:33 +0100
branch0.9.22
changeset 11602 1a57b0d4cc4e
parent 11601 1b58732e0dd7
child 11603 06ecd48e65ef
videorec: Drop setting x264 preset It is the default one anyway.
hedgewars/avwrapper/avwrapper.c
--- a/hedgewars/avwrapper/avwrapper.c	Mon Nov 16 13:59:04 2015 +0100
+++ b/hedgewars/avwrapper/avwrapper.c	Sat Nov 07 15:07:33 2015 +0100
@@ -321,13 +321,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();