This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
lavfi: clean memory on error in ADD_FORMAT()
CC:
libav-stable@libav.org
Bug-Id: CID 1250334
tags/n2.5
Vittorio Giovara
11 years ago
parent
fd9badd3cb
commit
863ee8a855
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
libavfilter/formats.c
+ 3
- 1
libavfilter/formats.c
View File
@@ -188,8 +188,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; \
Write
Preview
Loading…
Cancel
Save