Skip to content
Browse files

Don't increment the number of channels returned by libdvdnav. This wa…

…s causing 5.1 audio to be wrongly identified as 7 channel, and stereo as 3 channel.
  • Loading branch information...
1 parent c61bb1e commit 20a5628e37a8d6f73d2d01e339e9aba82c484025 @stuartm stuartm committed Mar 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythtv/dvdringbuffer.cpp
View
2 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

0 comments on commit 20a5628

Please sign in to comment.
Something went wrong with that request. Please try again.