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:
8eb57dc
)
avcodec: Unref the dummy buffer on the fail path
author
Luca Barbato
<lu_zero@gentoo.org>
Tue, 21 Apr 2015 12:26:36 +0000
(14:26 +0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Wed, 22 Apr 2015 10:27:13 +0000
(12:27 +0200)
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
f1acd78
..
7740147
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-727,6
+727,7
@@
do { \
ref_out = av_buffer_create(data, data_size, compat_release_buffer, \
dummy_ref, 0); \
if (!ref_out) { \
+ av_buffer_unref(&dummy_ref); \
av_frame_unref(frame); \
ret = AVERROR(ENOMEM); \
goto fail; \