diff libmpcodecs/ad_hwac3.c @ 27588:9b767bba79fb

External liba52 support, part 2 of 2.
author rathann
date Mon, 15 Sep 2008 16:32:31 +0000
parents 3d8e6afe3f9f
children 08c1417e757b
line wrap: on
line diff
--- a/libmpcodecs/ad_hwac3.c	Mon Sep 15 16:30:24 2008 +0000
+++ b/libmpcodecs/ad_hwac3.c	Mon Sep 15 16:32:31 2008 +0000
@@ -17,7 +17,11 @@
 
 #include "ad_internal.h"
 
+#ifdef CONFIG_LIBA52_INTERNAL
 #include "liba52/a52.h"
+#else
+#include <a52dec/a52.h>
+#endif
 
 
 static int isdts = -1;
@@ -97,8 +101,10 @@
   sh_audio->a_in_buffer_len = length;
     
   // TODO: is DTS also checksummed?
+#ifdef CONFIG_LIBA52_INTERNAL
   if(isdts == 0 && crc16_block(sh_audio->a_in_buffer + 2, length - 2) != 0)
     mp_msg(MSGT_DECAUDIO, MSGL_STATUS, "a52: CRC check failed!  \n");
+#endif
     
   return length;
 }