• Marton Balint's avatar
    ffplay: remove early frame drop functionality · d2d8e1e5
    Marton Balint authored
    The current impementation of early frame drops (dropping frames before adding
    them to the picture queue) has multiple problems:
    
    Even after gettin A-V sync, the frame droping continues until
    VideoState->skip_frames reaches 1, which can take a lot of time causing useless
    additional frame drops and bad AV-sync. This issue can be easily triggered with
    for example changing the audio stream.
    
    Also video_refresh currenly does not handle early skipped frames in every case,
    for example if we skip a frame, then the last frame duration calculation will
    compute the duration of the sum of the skipped frame and the duration of the
    frame before that, and in compute_target_delay we may multiply this unusually
    big delay.
    Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
    d2d8e1e5
ffplay.c 101 KB