OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f0e855
)
avcodec/vmdav: use av_freep() and reset unpack_buffer_size
author
Paul B Mahol
<onemda@gmail.com>
Fri, 8 Nov 2013 14:15:31 +0000
(14:15 +0000)
committer
Paul B Mahol
<onemda@gmail.com>
Fri, 8 Nov 2013 19:24:17 +0000
(19:24 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/vmdav.c
patch
|
blob
|
history
diff --git
a/libavcodec/vmdav.c
b/libavcodec/vmdav.c
index
ea0e842
..
4a45266
100644
(file)
--- 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;
}