Commit f12f1896 authored by Mashiat Sarker Shakkhar's avatar Mashiat Sarker Shakkhar Committed by Michael Niedermayer

Implement reset_codec()

(cherry picked from commit c56313aa7969691f1a779e5ac5666f012676836f)
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 06b67051
......@@ -746,6 +746,17 @@ static void clear_codec_buffers(WmallDecodeCtx *s)
}
}
static void reset_codec(WmallDecodeCtx *s)
{
int ich, ilms;
s->mclms_recent = s->mclms_order * s->num_channels;
for (ich = 0; ich < s->num_channels; ich++)
for (ilms = 0; ilms < s->cdlms_ttl[ich]; ilms++)
s->cdlms[ich][ilms].recent = s->cdlms[ich][ilms].order;
}
/**
*@brief Decode a single subframe (block).
*@param s codec context
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment