Merge commit 'aef0be08756e00f363c524453c948a6e2a348614'

* commit 'aef0be08756e00f363c524453c948a6e2a348614':
  avcodec: Unref the dummy buffer on the fail path

Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-04-23 21:17:08 +02:00
commit c39b07ff28

View File

@ -951,6 +951,7 @@ do { \
ref_out = av_buffer_create(data, data_size, compat_release_buffer, \ ref_out = av_buffer_create(data, data_size, compat_release_buffer, \
dummy_ref, 0); \ dummy_ref, 0); \
if (!ref_out) { \ if (!ref_out) { \
av_buffer_unref(&dummy_ref); \
av_frame_unref(frame); \ av_frame_unref(frame); \
ret = AVERROR(ENOMEM); \ ret = AVERROR(ENOMEM); \
goto fail; \ goto fail; \