summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Braendli <matthias.braendli@u-blox.com>2015-03-23 13:26:59 +0100
committerMatthias Braendli <matthias.braendli@u-blox.com>2015-03-23 13:26:59 +0100
commitcfd3e90270e7a54da32665374c7b8cddce826efa (patch)
tree9fa4df05b4bc3d4ef06ac0cea7f66a62d5aee724
parent3ca763faf015958b8aed212efabbfac128adccee (diff)
downloadfdk-aac-cfd3e90270e7a54da32665374c7b8cddce826efa.tar.gz
fdk-aac-cfd3e90270e7a54da32665374c7b8cddce826efa.tar.bz2
fdk-aac-cfd3e90270e7a54da32665374c7b8cddce826efa.zip
The -c option should also work for libvlc input
-rw-r--r--src/VLCInput.cpp2
-rw-r--r--src/VLCInput.h3
-rw-r--r--src/dabplus-enc.cpp2
3 files changed, 4 insertions, 3 deletions
diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp
index 99f86f1..1c84a50 100644
--- a/src/VLCInput.cpp
+++ b/src/VLCInput.cpp
@@ -56,7 +56,7 @@ void handleStream(
{
VLCInput* in = (VLCInput*)p_audio_data;
- assert(channels == 2);
+ assert(channels == m_channels);
assert(rate == in->getRate());
assert(bits_per_sample == 8*BYTES_PER_SAMPLE);
diff --git a/src/VLCInput.h b/src/VLCInput.h
index e387044..f9cf783 100644
--- a/src/VLCInput.h
+++ b/src/VLCInput.h
@@ -41,10 +41,11 @@ class VLCInput
public:
VLCInput(const std::string& uri,
int rate,
+ unsigned channels,
unsigned verbosity) :
m_uri(uri),
m_verbosity(verbosity),
- m_channels(2),
+ m_channels(channels),
m_rate(rate),
m_vlc(NULL) { }
diff --git a/src/dabplus-enc.cpp b/src/dabplus-enc.cpp
index bdd4c58..9e8bd00 100644
--- a/src/dabplus-enc.cpp
+++ b/src/dabplus-enc.cpp
@@ -570,7 +570,7 @@ int main(int argc, char *argv[])
JackInput jack_in(jack_name, channels, sample_rate, queue);
#endif
#if HAVE_VLC
- VLCInput vlc_in(vlc_uri, sample_rate, verbosity);
+ VLCInput vlc_in(vlc_uri, sample_rate, channels, verbosity);
#endif
if (infile) {