[FFmpeg-cvslog] avcodec: Unref the dummy buffer on the fail path
Luca Barbato
git at videolan.org
Thu Apr 23 21:31:28 CEST 2015
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Tue Apr 21 14:26:36 2015 +0200| [aef0be08756e00f363c524453c948a6e2a348614] | committer: Luca Barbato
avcodec: Unref the dummy buffer on the fail path
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aef0be08756e00f363c524453c948a6e2a348614
---
libavcodec/utils.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index f1acd78..7740147 100644
--- 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; \
More information about the ffmpeg-cvslog
mailing list