changeset 30244:5ba6784f6574

More changes needed to make ad_hwac3 truly independent from liba52. Patch by Beno«Āt Amiaux [benoit amiaux gmail com]
author reimar
date Mon, 11 Jan 2010 21:06:00 +0000
parents 05f085c36d5b
children bef93e623403
files libmpcodecs/ad.c libmpcodecs/ad_hwac3.c
diffstat 2 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad.c	Mon Jan 11 20:40:51 2010 +0000
+++ b/libmpcodecs/ad.c	Mon Jan 11 21:06:00 2010 +0000
@@ -49,8 +49,8 @@
 #endif
 #ifdef CONFIG_LIBA52
   &mpcodecs_ad_liba52,
+#endif
   &mpcodecs_ad_hwac3,
-#endif
   &mpcodecs_ad_hwmpa,
 #ifdef CONFIG_LIBAVCODEC
   &mpcodecs_ad_ffmpeg,
--- a/libmpcodecs/ad_hwac3.c	Mon Jan 11 20:40:51 2010 +0000
+++ b/libmpcodecs/ad_hwac3.c	Mon Jan 11 21:06:00 2010 +0000
@@ -135,12 +135,6 @@
   demux_read_data(sh_audio->ds, sh_audio->a_in_buffer + 12, length - 12);
   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;
 }