Skip to content

Commit

Permalink
Refs #8260. backport [24018] to 0.23 fixes.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.mythtv.org/svn/branches/release-0-23-fixes@24307 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
Stanley Kamithi committed Apr 29, 2010
1 parent 6236461 commit 7ec3359
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mythtv/libs/libmythdvdnav/dvdnav/vm/vm.c
Expand Up @@ -698,12 +698,15 @@ int vm_get_current_title_part(vm_t *vm, int *title_result, int *part_result) {
*/
int vm_get_audio_stream(vm_t *vm, int audioN) {
int streamN = -1;
const uint AC3_OFFSET = 0x80;
const uint DTS_OFFSET = 0x88;
const uint AC3_OFFSET = 0x80;
const uint DTS_OFFSET = 0x88;
const uint LPCM_OFFSET = 0xA0;
const uint MP2_OFFSET = 0xC0;

int stream_id = audioN;
if (stream_id >= LPCM_OFFSET) {
if (stream_id >= MP2_OFFSET) {
stream_id -= MP2_OFFSET;
} else if (stream_id >= LPCM_OFFSET) {
stream_id -= LPCM_OFFSET;
} else if (stream_id >= DTS_OFFSET) {
stream_id -= DTS_OFFSET;
Expand Down

0 comments on commit 7ec3359

Please sign in to comment.