aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-06-30 09:33:59 +0000
committerMåns Rullgård <mans@mansr.com>2010-06-30 09:33:59 +0000
commitdf92772c556cfe797ebd465b547b53a230c99ed6 (patch)
tree70ec48e3804054fdb94632707009880d9890ae71 /libavcodec
parent680b232142f22f419ae8fd7526096047b3c8cdac (diff)
downloadffmpeg-df92772c556cfe797ebd465b547b53a230c99ed6.tar.gz
apedec: add flush function
Originally committed as revision 23900 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/apedec.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
index a90a07fa7d..dd372e275a 100644
--- a/libavcodec/apedec.c
+++ b/libavcodec/apedec.c
@@ -877,6 +877,12 @@ static int ape_decode_frame(AVCodecContext * avctx,
return bytes_used;
}
+static void ape_flush(AVCodecContext *avctx)
+{
+ APEContext *s = avctx->priv_data;
+ s->samples= 0;
+}
+
AVCodec ape_decoder = {
"ape",
AVMEDIA_TYPE_AUDIO,
@@ -887,5 +893,6 @@ AVCodec ape_decoder = {
ape_decode_close,
ape_decode_frame,
.capabilities = CODEC_CAP_SUBFRAMES,
+ .flush = ape_flush,
.long_name = NULL_IF_CONFIG_SMALL("Monkey's Audio"),
};