aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-11-08 14:23:45 +0000
committerPaul B Mahol <onemda@gmail.com>2013-11-08 19:24:17 +0000
commitb8f276e6457413530a38a16a4e79988932d7e661 (patch)
tree26cabf04f6db9b5ee8c347c160c283149d2ccac0
parent2145e8f1935390c1574690a04cc49aa4e721404b (diff)
downloadffmpeg-b8f276e6457413530a38a16a4e79988932d7e661.tar.gz
avcodec/mimic: use av_freep() and reset swap_buf_size
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/mimic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c
index a1cb5e7ad3..31d63931a2 100644
--- a/libavcodec/mimic.c
+++ b/libavcodec/mimic.c
@@ -116,7 +116,8 @@ static av_cold int mimic_decode_end(AVCodecContext *avctx)
MimicContext *ctx = avctx->priv_data;
int i;
- av_free(ctx->swap_buf);
+ av_freep(&ctx->swap_buf);
+ ctx->swap_buf_size = 0;
for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) {
if (ctx->frames[i].f)