[FFmpeg-cvslog] sanm: reset frame sizes on buffer destruction

Michael Niedermayer git at videolan.org
Tue Feb 12 02:14:52 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Feb 12 01:59:07 2013 +0100| [f0d9ccac893758b3e34477fb81453b3bae092121] | committer: Michael Niedermayer

sanm: reset frame sizes on buffer destruction

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f0d9ccac893758b3e34477fb81453b3bae092121
---

 libavcodec/sanm.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index ec01351..e56a19a 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)



More information about the ffmpeg-cvslog mailing list