summaryrefslogtreecommitdiffstats
path: root/lib/rbcodec/codecs/aac.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/codecs/aac.c')
-rw-r--r--lib/rbcodec/codecs/aac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/aac.c b/lib/rbcodec/codecs/aac.c
index 1f5165ad05..8353f0b1bf 100644
--- a/lib/rbcodec/codecs/aac.c
+++ b/lib/rbcodec/codecs/aac.c
@@ -185,6 +185,8 @@ enum codec_status codec_run(void)
}
NeAACDecPostSeekReset(decoder, i);
ci->seek_complete();
+ if (i >= demux_res.num_sample_byte_sizes)
+ break;
}
action = CODEC_ACTION_NULL;