summaryrefslogtreecommitdiffstats
path: root/libhb/bd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/bd.c')
-rw-r--r--libhb/bd.c3
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];