summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-05-29 13:12:44 -0600
committerJohn Stebbins <[email protected]>2016-05-29 13:12:44 -0600
commitdd801e8e5ab8f41a30df7f3657aaa06fcecb07dc (patch)
tree65218814b67c8a8fe6c714a3f0ae4acdf25ebd22 /libhb
parent1db4f9898de375ee7d83fdf56e2af5de3ef53671 (diff)
vpx: fix NULL encoder preset case
Diffstat (limited to 'libhb')
-rw-r--r--libhb/encavcodec.c8
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);