diff mpegts.c @ 2893:c31c50af40c5 libavformat

improve CRC API - don't export any global var - provide either generated or hardcoded tables
author aurel
date Fri, 04 Jan 2008 23:09:58 +0000
parents d52c718e83f9
children f982a5a75e40
line wrap: on
line diff
--- a/mpegts.c	Fri Jan 04 20:09:48 2008 +0000
+++ b/mpegts.c	Fri Jan 04 23:09:58 2008 +0000
@@ -262,7 +262,8 @@
     if (tss->section_h_size != -1 && tss->section_index >= tss->section_h_size) {
         tss->end_of_section_reached = 1;
         if (!tss->check_crc ||
-            av_crc(av_crc04C11DB7, -1, tss->section_buf, tss->section_h_size) == 0)
+            av_crc(av_crc_get_table(AV_CRC_32_IEEE), -1,
+                   tss->section_buf, tss->section_h_size) == 0)
             tss->section_cb(tss1, tss->section_buf, tss->section_h_size);
     }
 }