diff options
author | jstebbins <[email protected]> | 2013-01-01 21:05:44 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2013-01-01 21:05:44 +0000 |
commit | 50d85c8005846920501b579f108d4d19a3b8a28c (patch) | |
tree | 6be95a091b03aeb029377924c72772af09f82bc5 | |
parent | 2b6d88894dab3290fcb8ded79e03d69d40dd6dc3 (diff) |
libhb: fix a problem with BD audio track detection
Some BDs can have several clips that have no audio (The Girl With the Dragon
Tattoo 2009). This fools our audio selection logic into thinking the entire
BD has no audio. So ignore clips that have no audio tracks when searching
for audio.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5127 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/bd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libhb/bd.c b/libhb/bd.c index 67331bff5..85c22a060 100644 --- a/libhb/bd.c +++ b/libhb/bd.c @@ -213,6 +213,9 @@ static int bd_audio_equal( BLURAY_CLIP_INFO *a, BLURAY_CLIP_INFO *b ) if ( a->audio_stream_count != b->audio_stream_count ) return 0; + if ( a->audio_stream_count == 0 ) + return 0; + for ( ii = 0; ii < a->audio_stream_count; ii++ ) { BLURAY_STREAM_INFO * s = &a->audio_streams[ii]; |