diff options
-rw-r--r-- | libhb/encavcodec.c | 8 |
1 files changed, 7 insertions, 1 deletions
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); |