RustAudio / ogg

Ogg container decoder and encoder written in pure Rust
Other
113 stars 21 forks source link

seek_absgp may not work properly when it encounters to a packet not containing the packet end #10

Open TonalidadeHidrica opened 3 years ago

TonalidadeHidrica commented 3 years ago

While seek_absgp function performs binary searching, it compares the absgp value of the page found with pos_goal parameter. However, absgp may be set to -1 when no packet ends in the page. Since this case seems not to be handled, the returned position will be wrong.