patch-xa_g72x_c 643 B

12345678910111213141516171819202122232425262728
  1. $OpenBSD: patch-xa_g72x_c,v 1.1 2017/05/09 20:09:48 naddy Exp $
  2. Index: xa_g72x.c
  3. --- xa_g72x.c.orig
  4. +++ xa_g72x.c
  5. @@ -30,6 +30,7 @@
  6. * Common routines for G.721 and G.723 conversions.
  7. */
  8. +#include <stdlib.h>
  9. #include "xa_g72x.h"
  10. static short power2[15] = {1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80,
  11. @@ -366,11 +367,12 @@ struct g72x_state *state_ptr; /* coder state pointer *
  12. /* UPA1 */
  13. /* update predictor pole a[0] */
  14. state_ptr->a[0] -= state_ptr->a[0] >> 8;
  15. - if (dqsez != 0)
  16. + if (dqsez != 0) {
  17. if (pks1 == 0)
  18. state_ptr->a[0] += 192;
  19. else
  20. state_ptr->a[0] -= 192;
  21. + }
  22. /* LIMD */
  23. a1ul = 15360 - a2p;