OSDN Git Service

Replace placeholders with actual calls to clear_codec_buffers() and reset_codec()
authorMashiat Sarker Shakkhar <shahriman_ams@yahoo.com>
Sat, 5 Nov 2011 21:04:12 +0000 (03:04 +0600)
committerMashiat Sarker Shakkhar <shahriman_ams@yahoo.com>
Sun, 20 Nov 2011 08:51:39 +0000 (14:51 +0600)
libavcodec/wmalosslessdec.c

index c95a863..aec042b 100644 (file)
@@ -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);