[FFmpeg-cvslog] avcodec/vmdav: use av_freep() and reset unpack_buffer_size

Paul B Mahol git at videolan.org
Fri Nov 8 20:24:40 CET 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Nov  8 14:15:31 2013 +0000| [2145e8f1935390c1574690a04cc49aa4e721404b] | committer: Paul B Mahol

avcodec/vmdav: use av_freep() and reset unpack_buffer_size

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavcodec/vmdav.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/vmdav.c b/libavcodec/vmdav.c
index ea0e842..4a45266 100644
--- a/libavcodec/vmdav.c
+++ b/libavcodec/vmdav.c
@@ -458,7 +458,8 @@ static av_cold int vmdvideo_decode_end(AVCodecContext *avctx)
     VmdVideoContext *s = avctx->priv_data;
 
     av_frame_unref(&s->prev_frame);
-    av_free(s->unpack_buffer);
+    av_freep(&s->unpack_buffer);
+    s->unpack_buffer_size = 0;
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list