• Marton Balint's avatar
    avformat/wavdec: dynamically set max_size by default · 3a09c212
    Marton Balint authored
    The wav demuxer by default tried to demux 4096-byte packets which caused
    packets with very few number of samples for files with high channel count.
    This caused a significant overhead especially since the latest ffmpeg.c
    threading changes.
    
    So let's use a similar approach for selecting audio frame size which is already
    used in the PCM demuxer, which is to read 25 times per second but at most 1024
    samples.
    Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
    3a09c212
wavdec.c 33.8 KB