From 049b20f7737251c88a08039fce7c055d31a689d0 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 24 Nov 2012 00:44:20 +0100 Subject: [PATCH] Free the AVFrame using the correct call. --- record/ffemu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/record/ffemu.c b/record/ffemu.c index 2cf491ab93..44cda93405 100644 --- a/record/ffemu.c +++ b/record/ffemu.c @@ -780,7 +780,7 @@ static bool encode_audio(ffemu_t *handle, AVPacket *pkt, bool dry) if (avcodec_encode_audio2(handle->audio.codec, pkt, dry ? NULL : frame, &got_packet) < 0) { - av_freep(&frame); + avcodec_free_frame(&frame); return false; } @@ -789,7 +789,7 @@ static bool encode_audio(ffemu_t *handle, AVPacket *pkt, bool dry) pkt->size = 0; pkt->pts = AV_NOPTS_VALUE; pkt->dts = AV_NOPTS_VALUE; - av_freep(&frame); + avcodec_free_frame(&frame); return true; } @@ -807,7 +807,7 @@ static bool encode_audio(ffemu_t *handle, AVPacket *pkt, bool dry) handle->muxer.astream->time_base); } - av_freep(&frame); + avcodec_free_frame(&frame); #else if (dry)