Browse Source

Merge commit '863ee8a855b8ce27ffef41479eb66da58763faed'

* commit '863ee8a855b8ce27ffef41479eb66da58763faed':
  lavfi: clean memory on error in ADD_FORMAT()

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 11 years ago
parent
commit
42f3cb419a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavfilter/formats.c

+ 3
- 1
libavfilter/formats.c View File

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


Loading…
Cancel
Save