mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-05 23:00:02 +00:00
adxdec: clear eof flag and channel states when seeking
This commit is contained in:
parent
3e57573fce
commit
730280f90d
@ -165,6 +165,13 @@ static int adx_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
return buf - avpkt->data;
|
return buf - avpkt->data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void adx_decode_flush(AVCodecContext *avctx)
|
||||||
|
{
|
||||||
|
ADXContext *c = avctx->priv_data;
|
||||||
|
memset(c->prev, 0, sizeof(c->prev));
|
||||||
|
c->eof = 0;
|
||||||
|
}
|
||||||
|
|
||||||
AVCodec ff_adpcm_adx_decoder = {
|
AVCodec ff_adpcm_adx_decoder = {
|
||||||
.name = "adpcm_adx",
|
.name = "adpcm_adx",
|
||||||
.type = AVMEDIA_TYPE_AUDIO,
|
.type = AVMEDIA_TYPE_AUDIO,
|
||||||
@ -172,6 +179,7 @@ AVCodec ff_adpcm_adx_decoder = {
|
|||||||
.priv_data_size = sizeof(ADXContext),
|
.priv_data_size = sizeof(ADXContext),
|
||||||
.init = adx_decode_init,
|
.init = adx_decode_init,
|
||||||
.decode = adx_decode_frame,
|
.decode = adx_decode_frame,
|
||||||
|
.flush = adx_decode_flush,
|
||||||
.capabilities = CODEC_CAP_DR1,
|
.capabilities = CODEC_CAP_DR1,
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("SEGA CRI ADX ADPCM"),
|
.long_name = NULL_IF_CONFIG_SMALL("SEGA CRI ADX ADPCM"),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user