Skip to content

Commit

Permalink
Remove channel limitation in mythtranscode
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jyavenard committed Feb 27, 2011
1 parent 9d78d28 commit a2a57df
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mythtv/programs/mythtranscode/transcode.cpp
Expand Up @@ -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
Expand Down

1 comment on commit a2a57df

@FabriceMG
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have make one test and i'ts work now
I'll do more testing

Please sign in to comment.