Skip to content
Snippets Groups Projects
Commit 4d475f7e authored by Stefano Sabatini's avatar Stefano Sabatini
Browse files

lavd/lavfi: add check in case pix_fmts cannot be allocated in lavfi_read_header()

parent aa1c590b
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,9 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx, ...@@ -88,6 +88,9 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx,
#define FAIL(ERR) { ret = ERR; goto end; } #define FAIL(ERR) { ret = ERR; goto end; }
if (!pix_fmts)
FAIL(AVERROR(ENOMEM));
avfilter_register_all(); avfilter_register_all();
buffersink = avfilter_get_by_name("buffersink"); buffersink = avfilter_get_by_name("buffersink");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment