git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5d639b2
)
vorbisdec: do not leak the first frame.
author
Anton Khirnov
<anton@khirnov.net>
Sat, 9 Mar 2013 17:38:27 +0000
(18:38 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Sun, 10 Mar 2013 21:16:26 +0000
(22:16 +0100)
libavcodec/vorbisdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/vorbisdec.c
b/libavcodec/vorbisdec.c
index
ebe7aa7
..
be2e38d
100644
(file)
--- a/
libavcodec/vorbisdec.c
+++ b/
libavcodec/vorbisdec.c
@@
-1707,6
+1707,7
@@
static int vorbis_decode_frame(AVCodecContext *avctx, void *data,
if (!vc->first_frame) {
vc->first_frame = 1;
*got_frame_ptr = 0;
if (!vc->first_frame) {
vc->first_frame = 1;
*got_frame_ptr = 0;
+ av_frame_unref(frame);
return buf_size;
}
return buf_size;
}