Round the length of video-containing content to the nearest frame.
authorCarl Hetherington <cth@carlh.net>
Wed, 20 May 2020 18:20:47 +0000 (20:20 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 20 May 2020 19:56:28 +0000 (21:56 +0200)
commit48841aa4a4aa4704e1e054b294bac23996be6dd0
treecad367f33783a03f9216fe59d641c73e2043b5c9
parentce29d071ad8b420d3d4ba6d06487b3513cc86bef
Round the length of video-containing content to the nearest frame.
It seems reasonable, and is in the spirit of how positions are
rounded to frame boundaries.

It also fixes problems with unnecessary frames of black being
created at the end of trimmed files, where there can be
rounding-error-based confusion about where the content stops and
the black begins.
src/lib/content.cc
test/content_test.cc