Revision a2704c97 libavformat/oggenc.c
libavformat/oggenc.c | ||
---|---|---|
67 | 67 |
|
68 | 68 |
static void ogg_update_checksum(AVFormatContext *s, AVIOContext *pb, int64_t crc_offset) |
69 | 69 |
{ |
70 |
int64_t pos = url_ftell(pb);
|
|
70 |
int64_t pos = avio_tell(pb);
|
|
71 | 71 |
uint32_t checksum = get_checksum(pb); |
72 | 72 |
avio_seek(pb, crc_offset, SEEK_SET); |
73 | 73 |
avio_wb32(pb, checksum); |
... | ... | |
92 | 92 |
avio_wl64(pb, page->granule); |
93 | 93 |
avio_wl32(pb, oggstream->serial_num); |
94 | 94 |
avio_wl32(pb, oggstream->page_counter++); |
95 |
crc_offset = url_ftell(pb);
|
|
95 |
crc_offset = avio_tell(pb);
|
|
96 | 96 |
avio_wl32(pb, 0); // crc |
97 | 97 |
avio_w8(pb, page->segments_count); |
98 | 98 |
avio_write(pb, page->segments, page->segments_count); |
Also available in: Unified diff