Skip to content

Commit

Permalink
Don't increment the number of channels returned by libdvdnav. This wa…
Browse files Browse the repository at this point in the history
…s causing 5.1 audio to be wrongly identified as 7 channel, and stereo as 3 channel.

(cherry picked from commit 20a5628)
  • Loading branch information
stuartm committed Mar 15, 2012
1 parent 7b992ca commit 322de47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/DVDRingBuffer.cpp
Expand Up @@ -1347,7 +1347,7 @@ uint8_t DVDRingBufferPriv::GetNumAudioChannels(int id)
unsigned char channels = dvdnav_audio_stream_channels(m_dvdnav, id);
if (channels == 0xff)
return 0;
return (uint8_t)channels + 1;
return (uint8_t)channels;
}

/** \brief Get the dvd title and serial num
Expand Down

0 comments on commit 322de47

Please sign in to comment.