diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-02-12 01:59:07 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-12 01:59:07 +0100 |
commit | f0d9ccac893758b3e34477fb81453b3bae092121 (patch) | |
tree | 5bc9c54ae486d1ad540d356392b91fc71af1da2b /libavcodec/sanm.c | |
parent | 365270aec5c2b9284230abc702b11168818f14cf (diff) | |
download | ffmpeg-f0d9ccac893758b3e34477fb81453b3bae092121.tar.gz |
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.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) |