Skip to content

Commit

Permalink
fix compilation with LC_ONLY_DECODER (#47)
Browse files Browse the repository at this point in the history
881b5e2 broke compilation by always
defining DRN and DRM_PS. Fix this and place the define where it belongs.
  • Loading branch information
neheb committed Mar 11, 2020
1 parent 366d350 commit 74e949f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libfaad/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ libfaad_la_SOURCES = bits.c cfft.c decoder.c drc.c \

libfaad_drm_la_LDFLAGS = ${libfaad_la_LDFLAGS}
libfaad_drm_la_LIBADD = ${libfaad_la_LIBADD}
libfaad_drm_la_CFLAGS = ${libfaad_la_CFLAGS} -DDRM -DDRM_PS
libfaad_drm_la_CFLAGS = ${libfaad_la_CFLAGS} -DDRM_SUPPORT
libfaad_drm_la_SOURCES = ${libfaad_la_SOURCES}
7 changes: 5 additions & 2 deletions libfaad/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ extern "C" {
/* Allow decoding of LD profile AAC */
#define LD_DEC
/* Allow decoding of Digital Radio Mondiale (DRM) */
//#define DRM
//#define DRM_PS
#ifdef DRM_SUPPORT
#define DRM
#define DRM_PS
#endif

/* LD can't do without LTP */
#ifdef LD_DEC
Expand All @@ -115,6 +117,7 @@ extern "C" {
#undef MAIN_DEC
#undef SSR_DEC
#undef DRM
#undef DRM_PS
#undef ALLOW_SMALL_FRAMELENGTH
#undef ERROR_RESILIENCE
#endif
Expand Down

0 comments on commit 74e949f

Please sign in to comment.