diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-03-06 14:13:01 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-03-06 14:13:01 +0000 |
commit | 43a80ccee52bd478cbc5b575f9b4424de352138d (patch) | |
tree | c347d1bbf1900f7129a83165df6388796b70d2f0 /libavformat/mpegts.c | |
parent | 56419683b2e9f670d4ee231a92e13958f8134f37 (diff) | |
download | ffmpeg-43a80ccee52bd478cbc5b575f9b4424de352138d.tar.gz |
generic crc calculation code
Originally committed as revision 5115 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index db6dde9cae..2804b95203 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -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 @@ static void write_section_data(AVFormatContext *s, MpegTSFilter *tss1, 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); } } |