]> git.nihav.org Git - nihav.git/commitdiff
core: make blockdsp an independent feature
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 18 May 2019 09:43:41 +0000 (11:43 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 18 May 2019 09:43:41 +0000 (11:43 +0200)
nihav-core/Cargo.toml
nihav-core/src/codecs/mod.rs
nihav-realmedia/Cargo.toml

index ea77c95bfcec7e72d48cb7ee0510b75972544d63..e898b04a5aa85445ef2a7d90f860a8d98a722222 100644 (file)
@@ -10,7 +10,8 @@ default = ["decoders", "demuxers"]
 decoders = []
 demuxers = []
 
-h263 = []
+blockdsp = []
+h263 = ["blockdsp"]
 
 dsp = []
 dct = ["dsp"]
index 311a45ee4165f6cb56567e8acef2b24e7cd57f12..6cc8880e6d9d3e3a63de612c2324203e39fb6981 100644 (file)
@@ -263,7 +263,7 @@ pub struct DecoderInfo {
     pub get_decoder: fn () -> Box<dyn NADecoder>,
 }
 
-#[cfg(any(feature="h263"))]
+#[cfg(any(feature="blockdsp"))]
 pub mod blockdsp;
 
 #[cfg(feature="h263")]
index cfaf2acd74e7d31153c1e568ad0abfb71396f11e..57db27187c2e27279f3bb9297a0009f3a0c80de7 100644 (file)
@@ -6,7 +6,7 @@ edition = "2018"
 
 [dependencies.nihav_core]
 path = "../nihav-core"
-features = ["h263", "mdct"]
+features = ["h263", "mdct", "blockdsp"]
 
 [features]
 default = ["all_decoders", "all_demuxers"]