decoder/flac: validate the sample rate when scanning the tag

Don't calculate the song duration when the sample rate is 0 (division
by zero crash).
This commit is contained in:
Max Kellermann
2011-07-03 14:57:56 +02:00
parent 8d1c7ca206
commit 6aa6a9c272
3 changed files with 6 additions and 1 deletions

1
NEWS
View File

@@ -1,6 +1,7 @@
ver 0.16.4 (2010/??/??)
* decoder:
- ffmpeg: workaround for semantic API change in recent ffmpeg versions
- flac: validate the sample rate when scanning the tag
ver 0.16.3 (2011/06/04)