Mercurial > libavformat.hg
diff mpegts.c @ 996:2177aea28f4f libavformat
generic crc calculation code
| author | michael |
|---|---|
| date | Mon, 06 Mar 2006 14:13:01 +0000 |
| parents | edbe5c3717f9 |
| children | 92c01be95bbf |
line wrap: on
line diff
--- a/mpegts.c Mon Mar 06 08:54:33 2006 +0000 +++ b/mpegts.c Mon Mar 06 14:13:01 2006 +0000 @@ -17,7 +17,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "avformat.h" - +#include "crc.h" #include "mpegts.h" //#define DEBUG_SI @@ -146,7 +146,7 @@ if (tss->section_h_size != -1 && tss->section_index >= tss->section_h_size) { tss->end_of_section_reached = 1; if (!tss->check_crc || - mpegts_crc32(tss->section_buf, tss->section_h_size) == 0) + av_crc(av_crc04C11DB7, -1, tss->section_buf, tss->section_h_size) == 0) tss->section_cb(tss->opaque, tss->section_buf, tss->section_h_size); } }
