projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
680b232
)
apedec: add flush function
author
Måns Rullgård
<mans@mansr.com>
Wed, 30 Jun 2010 09:33:59 +0000
(09:33 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Wed, 30 Jun 2010 09:33:59 +0000
(09:33 +0000)
Originally committed as revision 23900 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/apedec.c
patch
|
blob
|
history
diff --git
a/libavcodec/apedec.c
b/libavcodec/apedec.c
index
a90a07f
..
dd372e2
100644
(file)
--- 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"),
};