Mercurial > libavcodec.hg
changeset 1817:93029a89c173 libavcodec
flac_flush()
author | michael |
---|---|
date | Wed, 18 Feb 2004 15:17:54 +0000 |
parents | fa7d0134f9f0 |
children | 3ea589261c6e |
files | flac.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flac.c Wed Feb 18 14:05:49 2004 +0000 +++ b/flac.c Wed Feb 18 15:17:54 2004 +0000 @@ -752,6 +752,14 @@ return 0; } +static void flac_flush(AVCodecContext *avctx){ + int i; + FLACContext *s = avctx->priv_data; + + s->bitstream_size= + s->bitstream_index= 0; +} + AVCodec flac_decoder = { "flac", CODEC_TYPE_AUDIO, @@ -761,4 +769,5 @@ NULL, flac_decode_close, flac_decode_frame, + .flush= flac_flush, };