From: Mashiat Sarker Shakkhar Date: Sat, 5 Nov 2011 21:04:12 +0000 (+0600) Subject: Replace placeholders with actual calls to clear_codec_buffers() and reset_codec() X-Git-Tag: android-x86-4.4-r1~13333^2~47 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f3d349f697bc91c89d8300032f7f19b8f066704f;p=android-x86%2Fexternal-ffmpeg.git Replace placeholders with actual calls to clear_codec_buffers() and reset_codec() --- diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c index c95a863317..aec042b393 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);