summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-17 12:56:25 +0100
committerAnton Khirnov <anton@khirnov.net>2011-03-30 07:47:08 +0200
commit4c4427a75da1cbb81f3097e0a0fbd6755516bc0d (patch)
tree029c58e33df34304098af90a94b87f549f281b86 /libavformat/aviobuf.c
parentce02f9becfc2e89bf552a86303b00d0b36323cdf (diff)
avio: make init_checksum() internal.
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index bb417e0506..7399905e89 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -406,6 +406,12 @@ int64_t av_url_read_fseek(AVIOContext *s, int stream_index,
{
return ffio_read_seek(s, stream_index, timestamp, flags);
}
+void init_checksum(AVIOContext *s,
+ unsigned long (*update_checksum)(unsigned long c, const uint8_t *p, unsigned int len),
+ unsigned long checksum)
+{
+ ffio_init_checksum(s, update_checksum, checksum);
+}
#endif
int avio_put_str(AVIOContext *s, const char *str)
@@ -555,7 +561,7 @@ unsigned long get_checksum(AVIOContext *s)
return s->checksum;
}
-void init_checksum(AVIOContext *s,
+void ffio_init_checksum(AVIOContext *s,
unsigned long (*update_checksum)(unsigned long c, const uint8_t *p, unsigned int len),
unsigned long checksum)
{