[FFmpeg-cvslog] r23900 - trunk/libavcodec/apedec.c
mru
subversion
Wed Jun 30 11:33:59 CEST 2010
Author: mru
Date: Wed Jun 30 11:33:59 2010
New Revision: 23900
Log:
apedec: add flush function
Modified:
trunk/libavcodec/apedec.c
Modified: trunk/libavcodec/apedec.c
==============================================================================
--- trunk/libavcodec/apedec.c Wed Jun 30 09:55:13 2010 (r23899)
+++ trunk/libavcodec/apedec.c Wed Jun 30 11:33:59 2010 (r23900)
@@ -877,6 +877,12 @@ static int ape_decode_frame(AVCodecConte
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"),
};
More information about the ffmpeg-cvslog
mailing list