Commit f0d9ccac authored by Michael Niedermayer's avatar Michael Niedermayer

sanm: reset frame sizes on buffer destruction

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 365270ae
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment