• Martin Storsjö's avatar
    libfdk-aacdec: Flush delayed samples at the end · c69b1a12
    Martin Storsjö authored
    The fdk-aac decoder can return decoded audio data with a delay.
    (Whether it does this or not depends on the options set; by default
    it does add some delay.) Previously, this delay was handled by
    adjusting the timestamps of the decoded frames, but the last delayed
    samples weren't returned.
    
    Set the AV_CODEC_CAP_DELAY flag to indicate that the caller should
    flush remaining samples at the end. Also trim off the corresponding
    amount of samples at the start instead of adjusting timestamps.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    c69b1a12
libfdk-aacdec.c 17.6 KB