aacdec: Fix a brown paper bag bug.
authorAndre Noll <maan@systemlinux.org>
Mon, 26 Jul 2010 11:05:42 +0000 (13:05 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 26 Jul 2010 11:05:42 +0000 (13:05 +0200)
commitd6f52cebbb178c884ba54ea782efa56a009493db
tree3f51e6a103076fd6149aeb9d5e9df0bd282ad41f
parent2c0737b48ed5a6b269e77a95e4f9bf1bf601f9d9
aacdec: Fix a brown paper bag bug.

Oops, we were using PARA_MAX() instead of PARA_MIN() to determine
the number of bytes to convert in the next run.  This silly bug could
lead to a segfault in the aacdec filter. Moreover, the assertion in
buffer_tree.c that would have caught the bug was _also_ b0rken.

But it's not my fault. I blame Grover of the Sesame street for both
bugs. He did explain the difference between near and far, although
this knowledge is next to useless for a programmer. And he did not
say a single word about MIN and MAX, or true and false. No wonder
such bugs happen.
aacdec_filter.c
buffer_tree.c