GNOME Bugzilla – Bug 335231
[wavparse] incorrect way to calculate seek position with block alignment
Last modified: 2006-03-21 13:08:47 UTC
Please describe the problem: This bug is related to bug #326864. For audio formats that use block aligning, seek position might be calculated incorrectly in wavparse element. The "wav-> offset" is added by "wav->datastart" value, and the block alignment modulo calculation is performed after this. in certain conditions this causes the offset to become zero. I attached a minimalistic patch that fixes this by changing the order of these operations :) Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 61623 [details] [review] Patch for gstwavparse to fix block aligning problem
Thanks - committed: 2006-03-21 Tim-Philipp Müller <tim at centricular dot net> Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com> * gst/wavparse/gstwavparse.c: (gst_wavparse_perform_seek): Fix block alignment calculation. Alignment should be done before adding the byte offset where the data starts (#335231).