summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Yves Avenard <jyavenard@mythtv.org>2011-02-27 04:30:40 (GMT)
committer Jean-Yves Avenard <jyavenard@mythtv.org>2011-02-27 04:30:40 (GMT)
commitb9f2adc105a3ece49d7e3a8ed1be63bdf2f45a5d (patch)
tree81d7030db657e06f202da0adb5799995350f9d33
parent0a8ad2cc0978b8e4c71c15806063a413028b750b (diff)
Remove channel limitation in mythtranscode
Should fix #9414. I don't understand why this would have ever worked in the past. But if it did, it was just lucky. So we just push our luck further
-rw-r--r--mythtv/programs/mythtranscode/transcode.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/mythtv/programs/mythtranscode/transcode.cpp b/mythtv/programs/mythtranscode/transcode.cpp
index dc4f8c3..c07ee1c 100644
--- a/mythtv/programs/mythtranscode/transcode.cpp
+++ b/mythtv/programs/mythtranscode/transcode.cpp
@@ -59,13 +59,10 @@ class AudioReencodeBuffer : public AudioOutput
virtual void Reconfigure(const AudioSettings &settings)
{
ClearError();
- bytes_per_frame = channels *
- AudioOutputSettings::SampleSize(settings.format);
channels = settings.channels;
-
- if ((uint)settings.channels > 2)
- Error(QString("Invalid channel count %1").arg(channels));
+ bytes_per_frame = channels *
+ AudioOutputSettings::SampleSize(settings.format);
}
// dsprate is in 100 * frames/second