diff options
author | John Stebbins <[email protected]> | 2016-05-29 13:12:44 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-05-29 13:12:44 -0600 |
commit | dd801e8e5ab8f41a30df7f3657aaa06fcecb07dc (patch) | |
tree | 65218814b67c8a8fe6c714a3f0ae4acdf25ebd22 /libhb/encavcodec.c | |
parent | 1db4f9898de375ee7d83fdf56e2af5de3ef53671 (diff) |
vpx: fix NULL encoder preset case
Diffstat (limited to 'libhb/encavcodec.c')
-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); |