[FFmpeg-cvslog] Implement reset_codec()

Mashiat Sarker Shakkhar git at videolan.org
Sun Nov 20 16:01:41 CET 2011


ffmpeg | branch: master | Mashiat Sarker Shakkhar <shahriman_ams at yahoo.com> | Sun Nov  6 03:00:49 2011 +0600| [03684c8ff33c8afd7edc0ffbf2f3b01101bb0e1d] | committer: Mashiat Sarker Shakkhar

Implement reset_codec()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=03684c8ff33c8afd7edc0ffbf2f3b01101bb0e1d
---

 libavcodec/wmalosslessdec.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index 422fd6c..5c6eed1 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -743,6 +743,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



More information about the ffmpeg-cvslog mailing list