summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Morgan <smorgan@mythtv.org>2012-03-15 14:04:56 (GMT)
committer Stuart Morgan <smorgan@mythtv.org>2012-03-15 14:04:56 (GMT)
commit20a5628e37a8d6f73d2d01e339e9aba82c484025 (patch)
tree6ef2949db842e9e9ef98eb872fbc441682e6271b
parentc61bb1e9f5c3e0f3a0b9ad67cfe9e0048943351e (diff)
Don't increment the number of channels returned by libdvdnav. This was causing 5.1 audio to be wrongly identified as 7 channel, and stereo as 3 channel.
-rw-r--r--mythtv/libs/libmythtv/dvdringbuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/libs/libmythtv/dvdringbuffer.cpp b/mythtv/libs/libmythtv/dvdringbuffer.cpp
index 460e167..5a445a0 100644
--- a/mythtv/libs/libmythtv/dvdringbuffer.cpp
+++ b/mythtv/libs/libmythtv/dvdringbuffer.cpp
@@ -1691,7 +1691,7 @@ uint8_t DVDRingBuffer::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