mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
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:
commit
c39b07ff28
@ -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; \
|
||||||
|
Loading…
Reference in New Issue
Block a user