avcodec: Unref the dummy buffer on the fail path

This commit is contained in:
Luca Barbato 2015-04-21 14:26:36 +02:00
parent 8eb57dc9d5
commit aef0be0875

View File

@ -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; \