]> git.nihav.org Git - nihav.git/commit
mov: speed-up reading track data
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 8 Feb 2025 09:45:31 +0000 (10:45 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 8 Feb 2025 09:45:31 +0000 (10:45 +0100)
commit6146839e6ec198198fe612d51880d83880d3a4c2
treec2c3f7fbf5ec1652d103fa1526326ba5ecc89c23
parent504f3d8a24b51e171ec98aa450aa8c7ed92a8e00
mov: speed-up reading track data

Apparently reading data element by element and pushing it into the vector
does not work that great for large arrays like e.g. timestamp corrections
in 1-hour long MP4.

So it is noticeably faster (up to several seconds at start-up) to read
whole array at once and swap endianness later.
nihav-commonfmt/src/demuxers/mov.rs