mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
lavd/lavfi: add check in case pix_fmts cannot be allocated in lavfi_read_header()
This commit is contained in:
parent
aa1c590b29
commit
4d475f7eb3
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user