mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
apedec: add flush function
Originally committed as revision 23900 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
680b232142
commit
df92772c55
@ -877,6 +877,12 @@ static int ape_decode_frame(AVCodecContext * avctx,
|
|||||||
return bytes_used;
|
return bytes_used;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void ape_flush(AVCodecContext *avctx)
|
||||||
|
{
|
||||||
|
APEContext *s = avctx->priv_data;
|
||||||
|
s->samples= 0;
|
||||||
|
}
|
||||||
|
|
||||||
AVCodec ape_decoder = {
|
AVCodec ape_decoder = {
|
||||||
"ape",
|
"ape",
|
||||||
AVMEDIA_TYPE_AUDIO,
|
AVMEDIA_TYPE_AUDIO,
|
||||||
@ -887,5 +893,6 @@ AVCodec ape_decoder = {
|
|||||||
ape_decode_close,
|
ape_decode_close,
|
||||||
ape_decode_frame,
|
ape_decode_frame,
|
||||||
.capabilities = CODEC_CAP_SUBFRAMES,
|
.capabilities = CODEC_CAP_SUBFRAMES,
|
||||||
|
.flush = ape_flush,
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("Monkey's Audio"),
|
.long_name = NULL_IF_CONFIG_SMALL("Monkey's Audio"),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user