From 472e211e418d74f0f0bb6dcf3db52485e4f3e800 Mon Sep 17 00:00:00 2001 From: koda Date: Sat, 7 Nov 2015 15:07:33 +0100 Subject: [PATCH] [PATCH] videorec: Drop setting x264 preset It is the default one anyway. Gbp-Pq: Name ab7e24456dd3dec808862f14d831c7abb14aadc9.patch --- 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(); -- 2.30.2