Skip to content

Commit

Permalink
AAC codec requires flushing too?
Browse files Browse the repository at this point in the history
See nova-video-player/aos-AVP#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
  • Loading branch information
courville committed Aug 24, 2024
1 parent b6593e8 commit 97e6c55
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/codec_ffmpeg_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 97e6c55

Please sign in to comment.