Browse Source

Implement reset_codec()

(cherry picked from commit c56313aa79)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Mashiat Sarker Shakkhar Michael Niedermayer 14 years ago
parent
commit
f12f189638
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      libavcodec/wmalosslessdec.c

+ 11
- 0
libavcodec/wmalosslessdec.c View File

@@ -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


Loading…
Cancel
Save