summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2014-04-13 14:23:57 +0200
committerAnton Khirnov <anton@khirnov.net>2014-04-17 20:08:19 +0200
commit32d05934abc7427bb90380a4c1ab20a15fd7d821 (patch)
tree1618bb3a0b050e576f86c9eb1f4e692fff8e6c9c /libavformat/aviobuf.c
parent0983d48111f578e17e8c1967d25ce593fce62b63 (diff)
mp3dec: decode more data from Info header
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 0024f9e8b2..cc79146225 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -414,6 +414,12 @@ 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 ff_crcA001_update(unsigned long checksum, const uint8_t *buf,
+ unsigned int len)
+{
+ return av_crc(av_crc_get_table(AV_CRC_16_ANSI_LE), checksum, buf, len);
+}
+
unsigned long ffio_get_checksum(AVIOContext *s)
{
s->checksum = s->update_checksum(s->checksum, s->checksum_ptr,