Package: hedgewars / 0.9.22-dfsg-11

ab7e24456dd3dec808862f14d831c7abb14aadc9.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From ab7e24456dd3dec808862f14d831c7abb14aadc9 Mon Sep 17 00:00:00 2001
From: koda <vittorio.giovara@gmail.com>
Date: Sat, 7 Nov 2015 15:07:33 +0100
Subject: [PATCH] videorec: Drop setting x264 preset

It is the default one anyway.
---
 hedgewars/avwrapper/avwrapper.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/hedgewars/avwrapper/avwrapper.c b/hedgewars/avwrapper/avwrapper.c
index 2e90cce..20b0785 100644
--- a/hedgewars/avwrapper/avwrapper.c
+++ b/hedgewars/avwrapper/avwrapper.c
@@ -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();