~ubuntu-branches/ubuntu/natty/mythtv/natty

« back to all changes in this revision

Viewing changes to libs/libmythdvdnav/dvdnav/vm/vm.c

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello, Mario Limonciello, Thomas Mashos
  • Date: 2010-06-20 00:11:00 UTC
  • mfrom: (1.1.53 upstream)
  • Revision ID: james.westby@ubuntu.com-20100620001100-yulpns6qg4ksmay6
Tags: 0.23.0+fixes25138-0ubuntu1
[ Mario Limonciello ]
* new upstream checkout (25138)

[ Thomas Mashos ]
* Added missingok for mirobridge log in logrotate (LP: #581283)
* Backend now waits for udev to finish (LP: #556204)
* Added patch to properly detect dbus during compile (LP: #574877)

Show diffs side-by-side

added added

removed removed

Lines of Context:
698
698
 */
699
699
int vm_get_audio_stream(vm_t *vm, int audioN) {
700
700
  int streamN = -1;
701
 
  const uint AC3_OFFSET = 0x80;
702
 
  const uint DTS_OFFSET = 0x88;
 
701
  const uint AC3_OFFSET  = 0x80;
 
702
  const uint DTS_OFFSET  = 0x88;
703
703
  const uint LPCM_OFFSET = 0xA0;
 
704
  const uint MP2_OFFSET  = 0xC0;
704
705
 
705
706
  int stream_id = audioN;
706
 
  if (stream_id >= LPCM_OFFSET) {
 
707
  if (stream_id >= MP2_OFFSET) {
 
708
    stream_id -= MP2_OFFSET;
 
709
  } else if (stream_id >= LPCM_OFFSET) {
707
710
    stream_id -= LPCM_OFFSET;
708
711
  } else if (stream_id >= DTS_OFFSET) {
709
712
    stream_id -= DTS_OFFSET;