[FFmpeg-devel] [PATCH 18/28] fixed: #8740 ape codec didn't flush internal data on seeks

Måns Rullgård mans
Wed Jun 30 11:34:06 CEST 2010


Kostya Shishkov <kostya.shishkov at gmail.com> writes:

> On 30 June 2010 11:09, Mans Rullgard <mans at mansr.com> wrote:
>> From: Cory Fields <theuni-nospam- at xbmc.org>
>>
>> ---
>> ?libavcodec/apedec.c | ? ?7 +++++++
>> ?1 files changed, 7 insertions(+), 0 deletions(-)
>>
>> diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
>> index a90a07f..03f9109 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"),
>> ?};
>> --
>> 1.7.1.1
>>
>
> ok

Applied.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list