Commit 42f3cb41 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '863ee8a8'

* commit '863ee8a8':
  lavfi: clean memory on error in ADD_FORMAT()
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 15ed7ca4 863ee8a8
......@@ -320,8 +320,10 @@ do { \
\
fmts = av_realloc((*f)->list, \
sizeof(*(*f)->list) * ((*f)->nb + 1));\
if (!fmts) \
if (!fmts) { \
av_freep(&f); \
return AVERROR(ENOMEM); \
} \
\
(*f)->list = fmts; \
(*f)->list[(*f)->nb++] = fmt; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment