diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2013-05-17 20:28:03 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2013-05-17 21:16:02 +0200 |
commit | 24c65eb29f05e9634ba1d32d81221e8644bbeb19 (patch) | |
tree | c482a83b3e3e8b24ef4510f87ede1459c79d584e /libavutil/md5.h | |
parent | 47ac344970f1d6ef149c4b8a883b68cdb15112c2 (diff) | |
download | ffmpeg-24c65eb29f05e9634ba1d32d81221e8644bbeb19.tar.gz |
md5: avoid unnecessary copying.
Where necessary use memcpy instead.
Thanks to Giorgio Vazzana [mywing81 gmail] for
spotting this loop as the cause for the bad
performance.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavutil/md5.h')
-rw-r--r-- | libavutil/md5.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/md5.h b/libavutil/md5.h index 1d7be9ff53..60daa93a3c 100644 --- a/libavutil/md5.h +++ b/libavutil/md5.h @@ -38,7 +38,7 @@ struct AVMD5; struct AVMD5 *av_md5_alloc(void); void av_md5_init(struct AVMD5 *ctx); -void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, const int len); +void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, int len); void av_md5_final(struct AVMD5 *ctx, uint8_t *dst); void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len); |