From: koda Date: Sat, 7 Nov 2015 14:07:33 +0000 (+0100) Subject: [PATCH] videorec: Drop setting x264 preset X-Git-Tag: archive/raspbian/1.0.0-8+rpi1~1^2^2^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=472e211e418d74f0f0bb6dcf3db52485e4f3e800;p=hedgewars.git [PATCH] videorec: Drop setting x264 preset It is the default one anyway. Gbp-Pq: Name ab7e24456dd3dec808862f14d831c7abb14aadc9.patch --- 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();