Browse Source

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

tags/n0.10
Stefano Sabatini 14 years ago
parent
commit
4d475f7eb3
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavdevice/lavfi.c

+ 3
- 0
libavdevice/lavfi.c View File

@@ -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…
Cancel
Save