diff options
-rw-r--r-- | libavcodec/sanm.c | 3 |
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) |