From dd801e8e5ab8f41a30df7f3657aaa06fcecb07dc Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Sun, 29 May 2016 13:12:44 -0600 Subject: vpx: fix NULL encoder preset case --- libhb/encavcodec.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libhb/encavcodec.c') diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index 08d13efcd..7307f7cd9 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -635,7 +635,13 @@ int encavcodecWork( hb_work_object_t * w, hb_buffer_t ** buf_in, static void apply_vpx_preset(AVDictionary ** av_opts, const char * preset) { - if (!strcasecmp("veryfast", preset)) + if (preset == NULL) + { + // default "medium" + av_dict_set( av_opts, "deadline", "good", 0); + av_dict_set( av_opts, "cpu-used", "2", 0); + } + else if (!strcasecmp("veryfast", preset)) { av_dict_set( av_opts, "deadline", "good", 0); av_dict_set( av_opts, "cpu-used", "5", 0); -- cgit v1.2.3