Fixed bug in the way the audio track was selected in HandBrake
authorAlan J. Pippin <ajp@pippins.net>
Thu, 11 Feb 2010 07:17:49 +0000 (00:17 -0700)
committerAlan J. Pippin <ajp@pippins.net>
Thu, 11 Feb 2010 07:17:49 +0000 (00:17 -0700)
rip_dvd

diff --git a/rip_dvd b/rip_dvd
index 94b96fc1290499d289da30a0f96aecc8609d6d59..f58a00b0a6df9b4cef9a209ba79d5ad52eba3fe0 100755 (executable)
--- a/rip_dvd
+++ b/rip_dvd
@@ -1094,7 +1094,8 @@ function get_audio_track_from_vob {
   
   # find the stream that matches our aid
   #stream=`grep "Stream.*\[0x$aid_hex\]" $aidcheck`
-  stream=`grep "scan: audio" $aidcheck | grep -n "" | grep "scan: audio 0x$aid_hex"`
+  #stream=`grep "scan: audio" $aidcheck | grep -n "" | grep "scan: audio 0x$aid_hex"`
+  stream=`grep "add_audio_to_title:" $aidcheck | grep -n "" | grep "add_audio_to_title:.* stream 0x$aid_hex"`
  
   # extract the track number that handbrake uses
   #track=`expr match "$stream" '.*#[0-9]\.\([0-9]*\)'`