]> granicus.if.org Git - handbrake/commitdiff
opus: disable quality mode, enable compression levels
authorJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 23 Sep 2016 17:06:46 +0000 (10:06 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 23 Sep 2016 17:06:46 +0000 (10:06 -0700)
Quality based encoding is not supported by libopus.
But compression levels *are* supported.

libhb/common.c

index 50b596a987593934aa46e30f75fc37a9d5b1fdc3..a2fdc4b32417503c811ae6361f263c6f8093d146 100644 (file)
@@ -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.;
     }