summaryrefslogtreecommitdiffstats
path: root/apps/codecs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/flac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/codecs/flac.c b/apps/codecs/flac.c
index dfde12cabc..f55863b93a 100644
--- a/apps/codecs/flac.c
+++ b/apps/codecs/flac.c
@@ -150,6 +150,7 @@ enum codec_status codec_start(struct codec_api* api)
ci->configure(DSP_SET_FREQUENCY, (long *)(ci->id3->frequency));
/* The main decoding loop */
+ samplesdone=0;
bytesleft=ci->read_filebuf(buf,sizeof(buf));
while (bytesleft) {
ci->yield();