• Marton Balint's avatar
    ffplay: calculate target clock dynamically, make code more readable · 4e268aae
    Marton Balint authored
    Since target clock is based on the current A-V delay, it is better calculate it
    when we actually need it rather than when we put a picture in the picture
    queue.
    
    The patch also makes a code a bit more readable by renaming some delay
    variables to duration, and converting compute_target_time to a delay
    calculating function which does not modify the state. Factoring out the
    iteration of the pictq to standalone function is also done in this patch.
    Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
    4e268aae
ffplay.c 102 KB