[PATCH] videorec: Drop setting x264 preset
authorkoda <vittorio.giovara@gmail.com>
Sat, 7 Nov 2015 14:07:33 +0000 (15:07 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Thu, 12 Jan 2017 16:30:21 +0000 (16:30 +0000)
It is the default one anyway.

Gbp-Pq: Name ab7e24456dd3dec808862f14d831c7abb14aadc9.patch

hedgewars/avwrapper/avwrapper.c

index 2e90cce354ff3d4306fed89d9371993daf52d5b5..20b07853cbfc19902d7e97c762e74404de0d6fbe 100644 (file)
@@ -302,13 +302,7 @@ static int AddVideoStream()
 #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();