[FFmpeg-cvslog] lavd/lavfi: add check in case pix_fmts cannot be allocated in lavfi_read_header()
Stefano Sabatini
git at videolan.org
Tue Dec 20 13:22:51 CET 2011
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Tue Dec 20 13:17:03 2011 +0100| [4d475f7eb3969a378f1c2722118c57b62d2ac461] | committer: Stefano Sabatini
lavd/lavfi: add check in case pix_fmts cannot be allocated in lavfi_read_header()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4d475f7eb3969a378f1c2722118c57b62d2ac461
---
libavdevice/lavfi.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 6b72187..ed37f23 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");
More information about the ffmpeg-cvslog
mailing list