diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c index 6b72187d0c..ed37f23267 100644 --- a/libavdevice/lavfi.c +++ b/libavdevice/lavfi.c @@ -88,6 +88,9 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx, #define FAIL(ERR) { ret = ERR; goto end; } + if (!pix_fmts) + FAIL(AVERROR(ENOMEM)); + avfilter_register_all(); buffersink = avfilter_get_by_name("buffersink");