Mercurial > libavcodec.hg
changeset 11062:a8e640f4f388 libavcodec
Flush the bitreservour.
Fixes issue1716
author | michael |
---|---|
date | Sat, 30 Jan 2010 21:55:18 +0000 |
parents | 40b84645b089 |
children | 8327c5b4df9b |
files | wmadec.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/wmadec.c Sat Jan 30 20:07:37 2010 +0000 +++ b/wmadec.c Sat Jan 30 21:55:18 2010 +0000 @@ -920,6 +920,14 @@ return -1; } +static av_cold void flush(AVCodecContext *avctx) +{ + WMACodecContext *s = avctx->priv_data; + + s->last_bitoffset= + s->last_superframe_len= 0; +} + AVCodec wmav1_decoder = { "wmav1", @@ -930,6 +938,7 @@ NULL, ff_wma_end, wma_decode_superframe, + .flush=flush, .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 1"), }; @@ -943,5 +952,6 @@ NULL, ff_wma_end, wma_decode_superframe, + .flush=flush, .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"), };