mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-23 03:50:59 +00:00
7ba1e6f60d
We used to look at the first 10 seconds of data to compute the ratio of CDG packets. This was not working great for files having a long intro as no video was displayed during this time. Split the single search window into multiple smaller ones and walk through the whole file hoping to find a section containing CDG packets. With this change we are now fetching at most 230400 bytes of data, but in almost all matching cases we find the type way before that. This heuristic is good enough to be able to properly detect all the cdg files from my collection (77625 files). |
||
---|---|---|
.. | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml |