Mercurial > libavformat.hg
comparison nutdec.c @ 2683:153d6efc05b8 libavformat
rename av_crc04C11DB7_update to ff_crc04C11DB7_update and move it to aviobuf.c so it can be reused by other (de)muxers
author | bcoudurier |
---|---|
date | Tue, 30 Oct 2007 00:01:25 +0000 |
parents | 46dc5d231217 |
children | 49c540731133 |
comparison
equal
deleted
inserted
replaced
2682:66bd9e2fbcf1 | 2683:153d6efc05b8 |
---|---|
102 { | 102 { |
103 int64_t size; | 103 int64_t size; |
104 // start= url_ftell(bc) - 8; | 104 // start= url_ftell(bc) - 8; |
105 | 105 |
106 startcode= be2me_64(startcode); | 106 startcode= be2me_64(startcode); |
107 startcode= av_crc04C11DB7_update(0, &startcode, 8); | 107 startcode= ff_crc04C11DB7_update(0, &startcode, 8); |
108 | 108 |
109 init_checksum(bc, av_crc04C11DB7_update, startcode); | 109 init_checksum(bc, ff_crc04C11DB7_update, startcode); |
110 size= get_v(bc); | 110 size= get_v(bc); |
111 if(size > 4096) | 111 if(size > 4096) |
112 get_be32(bc); | 112 get_be32(bc); |
113 if(get_checksum(bc) && size > 4096) | 113 if(get_checksum(bc) && size > 4096) |
114 return -1; | 114 return -1; |
115 | 115 |
116 init_checksum(bc, calculate_checksum ? av_crc04C11DB7_update : NULL, 0); | 116 init_checksum(bc, calculate_checksum ? ff_crc04C11DB7_update : NULL, 0); |
117 | 117 |
118 return size; | 118 return size; |
119 } | 119 } |
120 | 120 |
121 static uint64_t find_any_startcode(ByteIOContext *bc, int64_t pos){ | 121 static uint64_t find_any_startcode(ByteIOContext *bc, int64_t pos){ |