From 97e6c551359d9889afb9f902353ac0478e3e917d Mon Sep 17 00:00:00 2001 From: Courville Software Date: Sat, 24 Aug 2024 23:10:56 +0200 Subject: [PATCH] AAC codec requires flushing too? See https://github.com/nova-video-player/aos-AVP/issues/1232 On my side this is what solves the fast play with binge watching with ffmpeg_6 Reproduction is done with My.Life.Is.Murder.S01E01.720p.BluRay.x264-GalaxyTV.mkv samples --- Source/codec_ffmpeg_audio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/codec_ffmpeg_audio.c b/Source/codec_ffmpeg_audio.c index 2695728..8b45b62 100644 --- a/Source/codec_ffmpeg_audio.c +++ b/Source/codec_ffmpeg_audio.c @@ -873,9 +873,7 @@ static int ffmpeg_audio_codec_flush( AUDIO_PROPERTIES *audio ) PRIV *p = (PRIV*)audio->priv; DBGCA serprintf("ffad flush\r\n" ); - if( audio->format != WAVE_FORMAT_AAC ) { - avcodec_flush_buffers( p->actx ); - } + avcodec_flush_buffers( p->actx ); p->inbuf_residual = 0; if( p->aparser ) {