You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.5 KiB

  1. From 8552fd53aaf5059ed769a0564330816beacaca98 Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Tue, 10 Mar 2020 17:38:29 -0700
  4. Subject: [PATCH] fix compilation with LC_ONLY_DECODER
  5. 881b5e263f25a8a8b714e83407fc2c9dab407e40 broke compilation by always
  6. defining DRN and DRM_PS. Fix this and place the define where it belongs.
  7. ---
  8. libfaad/Makefile.am | 2 +-
  9. libfaad/common.h | 7 +++++--
  10. 2 files changed, 6 insertions(+), 3 deletions(-)
  11. diff --git a/libfaad/Makefile.am b/libfaad/Makefile.am
  12. index 8ed57ae..7d9c71f 100644
  13. --- a/libfaad/Makefile.am
  14. +++ b/libfaad/Makefile.am
  15. @@ -32,5 +32,5 @@ libfaad_la_SOURCES = bits.c cfft.c decoder.c drc.c \
  16. libfaad_drm_la_LDFLAGS = ${libfaad_la_LDFLAGS}
  17. libfaad_drm_la_LIBADD = ${libfaad_la_LIBADD}
  18. -libfaad_drm_la_CFLAGS = ${libfaad_la_CFLAGS} -DDRM -DDRM_PS
  19. +libfaad_drm_la_CFLAGS = ${libfaad_la_CFLAGS} -DDRM_SUPPORT
  20. libfaad_drm_la_SOURCES = ${libfaad_la_SOURCES}
  21. diff --git a/libfaad/common.h b/libfaad/common.h
  22. index 8b78807..76722e4 100644
  23. --- a/libfaad/common.h
  24. +++ b/libfaad/common.h
  25. @@ -91,8 +91,10 @@ extern "C" {
  26. /* Allow decoding of LD profile AAC */
  27. #define LD_DEC
  28. /* Allow decoding of Digital Radio Mondiale (DRM) */
  29. -//#define DRM
  30. -//#define DRM_PS
  31. +#ifdef DRM_SUPPORT
  32. +#define DRM
  33. +#define DRM_PS
  34. +#endif
  35. /* LD can't do without LTP */
  36. #ifdef LD_DEC
  37. @@ -115,6 +117,7 @@ extern "C" {
  38. #undef MAIN_DEC
  39. #undef SSR_DEC
  40. #undef DRM
  41. + #undef DRM_PS
  42. #undef ALLOW_SMALL_FRAMELENGTH
  43. #undef ERROR_RESILIENCE
  44. #endif