Closed kevinschweikert closed 1 month ago
@mickel8 thank you very much for your feedback! I finally figured it out how to seek to the correct timestamp. See my comment. I've addressed almost all the comments and we just have to agree on the time_base calculation 😄
Perfect, thanks a lot! If we could just add a comment explaining what happens in timestamp calculation, we are ready to merge!
Merged, thank you!
Hey, I saw this in you TODO issue #1 and could need it myself. I've never written any C code, so I probably made some mistakes, but I hope this will help with some improvements.
I added a function to seek to a time in seconds, which will seek the
reader
. Additionally, I've added the frame rate to theReader
struct, so the user can use this information for further calculations