summaryrefslogtreecommitdiffstats
path: root/lib/rbcodec/codecs/alac.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/codecs/alac.c')
-rw-r--r--lib/rbcodec/codecs/alac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/alac.c b/lib/rbcodec/codecs/alac.c
index 0bf354080c..34f447df47 100644
--- a/lib/rbcodec/codecs/alac.c
+++ b/lib/rbcodec/codecs/alac.c
@@ -127,6 +127,8 @@ enum codec_status codec_run(void)
set_elapsed_samples(samplesdone);
ci->seek_complete();
+ if (i >= demux_res.num_sample_byte_sizes)
+ break;
}
/* Request the required number of bytes from the input buffer */