summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-11-08 14:15:31 +0000
committerPaul B Mahol <onemda@gmail.com>2013-11-08 19:24:17 +0000
commit2145e8f1935390c1574690a04cc49aa4e721404b (patch)
tree1bff4cc11fee7baefafad6139f9e4ac35fd71513
parent4f0e85517f5dcdba40f7b299b61997ecfc702440 (diff)
downloadffmpeg-streaming-2145e8f1935390c1574690a04cc49aa4e721404b.zip
ffmpeg-streaming-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.c3
1 files changed, 2 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud