comparison crc.c @ 1182:3fd51d88c897 libavformat

simplify
author michael
date Wed, 19 Jul 2006 08:39:50 +0000
parents bfea7dcd2698
children 0899bfe4105c
comparison
equal deleted inserted replaced
1181:c2f51d81c72e 1182:3fd51d88c897
27 static int crc_write_header(struct AVFormatContext *s) 27 static int crc_write_header(struct AVFormatContext *s)
28 { 28 {
29 CRCState *crc = s->priv_data; 29 CRCState *crc = s->priv_data;
30 30
31 /* init CRC */ 31 /* init CRC */
32 crc->crcval = av_adler32_update(0, NULL, 0); 32 crc->crcval = 1;
33 33
34 return 0; 34 return 0;
35 } 35 }
36 36
37 static int crc_write_packet(struct AVFormatContext *s, AVPacket *pkt) 37 static int crc_write_packet(struct AVFormatContext *s, AVPacket *pkt)