changeset 2432:b02c2679e5a9

libmad fix (see comment)
author alex
date Tue, 23 Oct 2001 17:01:55 +0000
parents 56c065687314
children f6caecb14d6d
files dec_audio.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dec_audio.c	Tue Oct 23 16:59:55 2001 +0000
+++ b/dec_audio.c	Tue Oct 23 17:01:55 2001 +0000
@@ -589,7 +589,12 @@
        }
      
      sh_audio->channels=2; // hack
+/* var. name changed in 0.13.0 (beta) (libmad/CHANGES) -- alex */
+#if (MAD_VERSION_MAJOR >= 0) && (MAD_VERSION_MINOR >= 13)
+     sh_audio->samplerate=mad_frame.header.samplerate;
+#else
      sh_audio->samplerate=mad_frame.header.sfreq;
+#endif
      sh_audio->i_bps=mad_frame.header.bitrate;
      printf(__FILE__ ":%d:mad: continuing\n", __LINE__);
      break;