summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-17 13:04:38 +0100
committerAnton Khirnov <anton@khirnov.net>2011-03-30 07:48:55 +0200
commitb64030f26d2ace99b9c782f5d5e264802d2d80a0 (patch)
tree49ce67b68837e15966dee71b24cabcecd57919c0 /libavformat/aviobuf.c
parentd09cc22d9c2dd2843179e7d11a1b564387f62dd2 (diff)
avio: make get_checksum() internal.
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 7399905e89..2e7ee15b2a 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -412,6 +412,10 @@ void init_checksum(AVIOContext *s,
{
ffio_init_checksum(s, update_checksum, checksum);
}
+unsigned long get_checksum(AVIOContext *s)
+{
+ return ffio_get_checksum(s);
+}
#endif
int avio_put_str(AVIOContext *s, const char *str)
@@ -554,7 +558,7 @@ unsigned long ff_crc04C11DB7_update(unsigned long checksum, const uint8_t *buf,
return av_crc(av_crc_get_table(AV_CRC_32_IEEE), checksum, buf, len);
}
-unsigned long get_checksum(AVIOContext *s)
+unsigned long ffio_get_checksum(AVIOContext *s)
{
s->checksum= s->update_checksum(s->checksum, s->checksum_ptr, s->buf_ptr - s->checksum_ptr);
s->update_checksum= NULL;