You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec: Unref the dummy buffer on the fail path
This commit is contained in:
@@ -727,6 +727,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; \
|
||||||
|
Reference in New Issue
Block a user