From e002e3291e6dc7953f843abf56fc14f08f238b21 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Thu, 11 Oct 2012 15:10:45 +0300 Subject: Use the new aes/md5/sha/tree allocation functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavcodec/flacenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/flacenc.c') diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 122d485631..b135e4a4e5 100644 --- a/libavcodec/flacenc.c +++ b/libavcodec/flacenc.c @@ -354,7 +354,7 @@ static av_cold int flac_encode_init(AVCodecContext *avctx) s->channels, 16); /* initialize MD5 context */ - s->md5ctx = av_malloc(av_md5_size); + s->md5ctx = av_md5_alloc(); if (!s->md5ctx) return AVERROR(ENOMEM); av_md5_init(s->md5ctx); -- cgit v1.2.3