summaryrefslogtreecommitdiff
path: root/libavcodec/sanm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-12 01:59:07 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-12 01:59:07 +0100
commitf0d9ccac893758b3e34477fb81453b3bae092121 (patch)
tree5bc9c54ae486d1ad540d356392b91fc71af1da2b /libavcodec/sanm.c
parent365270aec5c2b9284230abc702b11168818f14cf (diff)
sanm: reset frame sizes on buffer destruction
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/sanm.c')
-rw-r--r--libavcodec/sanm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index ec013511c8..e56a19a48e 100644
--- a/libavcodec/sanm.c
+++ b/libavcodec/sanm.c
@@ -231,6 +231,9 @@ static void destroy_buffers(SANMVideoContext *ctx)
av_freep(&ctx->frm2);
av_freep(&ctx->stored_frame);
av_freep(&ctx->rle_buf);
+ ctx->frm0_size =
+ ctx->frm1_size =
+ ctx->frm2_size = 0;
}
static av_cold int init_buffers(SANMVideoContext *ctx)