[FFmpeg-devel] [PATCH 2/2] lavf/md5enc: Use AV_HASH_MAX_SIZE

James Almer jamrial at gmail.com
Sun Jun 2 22:58:16 CEST 2013


Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/md5enc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/md5enc.c b/libavformat/md5enc.c
index 06c9c41..9a85e9b 100644
--- a/libavformat/md5enc.c
+++ b/libavformat/md5enc.c
@@ -35,7 +35,7 @@ struct MD5Context {
 static void md5_finish(struct AVFormatContext *s, char *buf)
 {
     struct MD5Context *c = s->priv_data;
-    uint8_t md5[32];
+    uint8_t md5[AV_HASH_MAX_SIZE];
     int i, offset = strlen(buf);
     int len = av_hash_get_size(c->hash);
     av_assert0(len > 0 && len <= sizeof(md5));
-- 
1.8.1.5



More information about the ffmpeg-devel mailing list