GNOME Bugzilla – Bug 167633
[wavparse] div by 0 => crash
Last modified: 2005-02-20 12:55:20 UTC
In function gst_wavparse_fmt(), wav->bps is set to a value from the gst_riff_strf_auds structure. For some (incorrect) files, wav->bps will be 0. In wavparse's loop and seek functions, the timestamp is divided by wav->bps so it crashes. I guess wav->bps should be set at a default value if it is 0, the timestamps won't be good but at least the filter won't crash. I'm using gst-plugins-0.8.5 but the same code is in the latest version.
Do you have a small sample file or the beginning of a file that exhibits this bug by any chance? Cheers -Tim
Created attachment 37643 [details] Sample wav file with bps = 0
Should be fixed in CVS now, thanks. Cheers -Tim