aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/flac.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-02-18 15:17:54 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-02-18 15:17:54 +0000
commit1e31d32c345c43bb12890c8d0e0ca1316d85ed2d (patch)
treed122aabc1841b092402271b893ed4561185f2005 /libavcodec/flac.c
parent0496a034137525dd3a22c179b0e24b56305d9f45 (diff)
downloadffmpeg-1e31d32c345c43bb12890c8d0e0ca1316d85ed2d.tar.gz
flac_flush()
Originally committed as revision 2797 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flac.c')
-rw-r--r--libavcodec/flac.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/flac.c b/libavcodec/flac.c
index d58afd9d3b..6fc8bf7dfd 100644
--- a/libavcodec/flac.c
+++ b/libavcodec/flac.c
@@ -752,6 +752,14 @@ static int flac_decode_close(AVCodecContext *avctx)
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 @@ AVCodec flac_decoder = {
NULL,
flac_decode_close,
flac_decode_frame,
+ .flush= flac_flush,
};