[FFmpeg-cvslog] Replace placeholders with actual calls to clear_codec_buffers() and reset_codec()

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


ffmpeg | branch: master | Mashiat Sarker Shakkhar <shahriman_ams at yahoo.com> | Sun Nov  6 03:04:12 2011 +0600| [f3d349f697bc91c89d8300032f7f19b8f066704f] | committer: Mashiat Sarker Shakkhar

Replace placeholders with actual calls to clear_codec_buffers() and reset_codec()

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

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

diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index c95a863..aec042b 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -875,6 +875,8 @@ static int decode_subframe(WmallDecodeCtx *s)
 
     s->seekable_tile = get_bits1(&s->gb);
     if(s->seekable_tile) {
+        clear_codec_buffers(s);
+
 	s->do_arith_coding    = get_bits1(&s->gb);
 	if(s->do_arith_coding) {
 	    dprintf(s->avctx, "do_arith_coding == 1");
@@ -893,6 +895,8 @@ static int decode_subframe(WmallDecodeCtx *s)
 	decode_cdlms(s);
 	s->movave_scaling = get_bits(&s->gb, 3);
 	s->quant_stepsize = get_bits(&s->gb, 8) + 1;
+
+	    reset_codec(s);
     }
 
     rawpcm_tile = get_bits1(&s->gb);



More information about the ffmpeg-cvslog mailing list