checks: fix flacdec unit tests on big-endian machines and under valgrind
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 13 May 2009 08:24:26 +0000 (09:24 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 13 May 2009 08:24:26 +0000 (09:24 +0100)
commit0c4b6ee2860e30c40f25bbb5c1c139db1eea69b7
tree20bba72654e832d24be33821885cb47f5c613a68
parent8accf2704bba2eae29874de8bb409ea67599500e
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.
tests/check/pipelines/flacdec.c