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:31:07 (GMT)
commita2a57dfc04e8370ec6d7231e12a531570e96e075 (patch)
tree022858fa3e551c7c63278b01c88532dcc185f5c1
parent9d78d28e4a60829238fce54c9a99e4c29fcb5d2e (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 121495c..51ce1b2 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 * samples/second