diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-11-08 14:15:31 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-11-08 19:24:17 +0000 |
commit | 2145e8f1935390c1574690a04cc49aa4e721404b (patch) | |
tree | 1bff4cc11fee7baefafad6139f9e4ac35fd71513 | |
parent | 4f0e85517f5dcdba40f7b299b61997ecfc702440 (diff) | |
download | ffmpeg-2145e8f1935390c1574690a04cc49aa4e721404b.tar.gz |
avcodec/vmdav: use av_freep() and reset unpack_buffer_size
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/vmdav.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vmdav.c b/libavcodec/vmdav.c index ea0e8428d2..4a45266866 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; } |