From e6f7abe20e42f24c2519f8be83c37cc9da253160 Mon Sep 17 00:00:00 2001 From: bnnm Date: Mon, 23 Jul 2018 00:28:21 +0200 Subject: [PATCH] Fix EA-MT full loops not being properly reset --- src/coding/ea_mt_decoder.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/coding/ea_mt_decoder.c b/src/coding/ea_mt_decoder.c index 1ecc4106..5f062580 100644 --- a/src/coding/ea_mt_decoder.c +++ b/src/coding/ea_mt_decoder.c @@ -549,6 +549,9 @@ static void flush_ea_mt_internal(VGMSTREAM *vgmstream, int is_start) { ctx->ptr = ctx->buffer; ctx->end = ctx->buffer + bytes; ctx->bits_count = 0; + + if (is_start) + ctx->parsed_header = 0; } }