1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avcodec/vmdav: use av_freep() and reset unpack_buffer_size

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2013-11-08 14:15:31 +00:00
parent 4f0e85517f
commit 2145e8f193

View File

@ -458,7 +458,8 @@ static av_cold int vmdvideo_decode_end(AVCodecContext *avctx)
VmdVideoContext *s = avctx->priv_data; VmdVideoContext *s = avctx->priv_data;
av_frame_unref(&s->prev_frame); av_frame_unref(&s->prev_frame);
av_free(s->unpack_buffer); av_freep(&s->unpack_buffer);
s->unpack_buffer_size = 0;
return 0; return 0;
} }