Page MenuHome

FFMPEG: refactor seeking
ClosedPublic

Authored by Richard Antalik (ISS) on Mar 8 2021, 4:12 AM.

Details

Summary

Split seeking section of ffmpeg_fetchibuf() function into multiple
smaller functions.

Conditional statements are moved to own funtions with human readable
names, so code flow is more clear.

To remove one branch of seeking, first frame is now decoded by
scanning, which will do only one iteration. So nothing has technically
changed.

Diff Detail

Repository
rB Blender

Event Timeline

Richard Antalik (ISS) requested review of this revision.Mar 8 2021, 4:12 AM
Richard Antalik (ISS) created this revision.

Generally looks fine.
While the knowledge is fresh, I would suggest adding comments about these new functions. For example, what does it exactly mean ffmpeg_can_scan/ ffmpeg_can_seek.

  • Add comment explaining ffmpeg_can_scan and ffmpeg_can_seek functions
This revision is now accepted and ready to land.Mar 26 2021, 12:07 PM
This revision was automatically updated to reflect the committed changes.