Skip to content
Snippets Groups Projects
Commit 4e268aae authored by Marton Balint's avatar Marton Balint
Browse files

ffplay: calculate target clock dynamically, make code more readable


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: default avatarMarton Balint <cus@passwd.hu>
parent 6bca574a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment