summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-09-23 10:06:46 -0700
committerJohn Stebbins <[email protected]>2016-09-23 10:06:46 -0700
commit60a1a675e0de534b8eb8072432bca14056517c80 (patch)
tree33a04353a23b78d7506d6a14ab02695114a7e288 /libhb
parent75d3d924aa13e8f2c093f60142467db5cadfc03a (diff)
opus: disable quality mode, enable compression levels
Quality based encoding is not supported by libopus. But compression levels *are* supported.
Diffstat (limited to 'libhb')
-rw-r--r--libhb/common.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 50b596a98..a2fdc4b32 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -1532,13 +1532,6 @@ void hb_audio_quality_get_limits(uint32_t codec, float *low, float *high,
*high = 127.;
break;
- case HB_ACODEC_OPUS:
- *direction = 0;
- *granularity = 1.;
- *low = 0.;
- *high = 10.;
- break;
-
default:
*direction = 0;
*granularity = 1.;
@@ -1579,9 +1572,6 @@ float hb_audio_quality_get_default(uint32_t codec)
case HB_ACODEC_CA_AAC:
return 91.;
- case HB_ACODEC_OPUS:
- return 10.;
-
default:
return HB_INVALID_AUDIO_QUALITY;
}
@@ -1614,6 +1604,13 @@ void hb_audio_compression_get_limits(uint32_t codec, float *low, float *high,
*low = 0.;
break;
+ case HB_ACODEC_OPUS:
+ *direction = 0;
+ *granularity = 1.;
+ *high = 10.;
+ *low = 0.;
+ break;
+
default:
*direction = 0;
*granularity = 1.;
@@ -1645,6 +1642,9 @@ float hb_audio_compression_get_default(uint32_t codec)
case HB_ACODEC_LAME:
return 2.;
+ case HB_ACODEC_OPUS:
+ return 10.;
+
default:
return -1.;
}