You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/formats: Alloc NULL fmts in SET_COMMON_FORMATS()
This avoids null pointer dereferences in case memory allocation has failed Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -494,7 +494,7 @@ void ff_formats_changeref(AVFilterFormats **oldref, AVFilterFormats **newref)
|
||||
}
|
||||
|
||||
#define SET_COMMON_FORMATS(ctx, fmts, in_fmts, out_fmts, ref, list) \
|
||||
{ \
|
||||
if (fmts) { \
|
||||
int count = 0, i; \
|
||||
\
|
||||
for (i = 0; i < ctx->nb_inputs; i++) { \
|
||||
|
Reference in New Issue
Block a user