Browse Source

avcodec: Unref the dummy buffer on the fail path

tags/n2.7
Luca Barbato 10 years ago
parent
commit
aef0be0875
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/utils.c

+ 1
- 0
libavcodec/utils.c 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; \


Loading…
Cancel
Save