• Marton Balint's avatar
    ffplay: fix silence insertion on error or pause · a07934d5
    Marton Balint authored
    Insertion of silence was a bit broken since
    df34b700 because the info whether or not the
    source buffer supposed to be silence must be kept between callbacks. Failing to
    do so causes rogue samples from the last buffer to be presented, I guess even a
    crash can occur under some circumstances.
    
    This patch uses a NULL audio_buf to keep the silence state across audio
    callbacks.
    
    Reviewed-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
    Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
    a07934d5
ffplay.c 132 KB