Skip to content

Commit 322de47

Browse files
committed
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.
(cherry picked from commit 20a5628)
1 parent 7b992ca commit 322de47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mythtv/libs/libmythtv/DVDRingBuffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ uint8_t DVDRingBufferPriv::GetNumAudioChannels(int id)
13471347
unsigned char channels = dvdnav_audio_stream_channels(m_dvdnav, id);
13481348
if (channels == 0xff)
13491349
return 0;
1350-
return (uint8_t)channels + 1;
1350+
return (uint8_t)channels;
13511351
}
13521352

13531353
/** \brief Get the dvd title and serial num

0 commit comments

Comments
 (0)