Commit graph

3 commits

Author SHA1 Message Date
Tim-Philipp Müller
0c4b6ee286 checks: fix flacdec unit tests on big-endian machines and under valgrind
Flacdec outputs 16-bit samples, so let's check if the value of the first
sample is what we expect rather than just the first byte, which may be
different from what we expect depending on the host's endianness. Fixes
the flacdec unit tests on PPC. Also fix a bunch of leaks in the unit
tests to make valgrind happy. Fixes #582420.
2009-05-13 09:24:26 +01:00
Thomas Vander Stichele
5f802dad4e add debug and an assert 2009-04-04 15:14:31 +02:00
Thomas Vander Stichele
be94a147ba add a test to check that we get all decoded bytes
from a 10-buffer audiotestsrc flac, in the case of:
 - a full decode
 - a decode of a seek for the full file
 - a decode of a seek for a small part, smaller than the first buffer

The test fails because flacdec drops the first outgoing buffer on a seek
2009-04-04 15:14:31 +02:00