]> git.tuebingen.mpg.de Git - paraslash.git/commit
aacdec: Fix check of return value of NeAACDecInit2().
authorAndre Noll <maan@systemlinux.org>
Sat, 4 May 2013 16:13:56 +0000 (18:13 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 4 May 2013 16:13:56 +0000 (18:13 +0200)
commit72109189a67d9fe19fb88dc744a999e2d21ff591
tree4a4b7f80da32d82be8d31bebd01f5f629b6222c4
parent9c5fbc5dd8b53604d7e73fb6714ee2b5e3458866
aacdec: Fix check of return value of NeAACDecInit2().

This function returns (char)-1 on errors and zero on success. Checking
whether the return value is negative is incorrect on systems where
char is unsigned.  On raspberry/ARM, gcc complains:

aacdec_filter.c:126:6: warning: comparison is always false due to limited range of data type [-Wtype-limits]

Fix this by checking agains zero instead.
aacdec_filter.c