diff options
author | Federico Tomassetti <federico@tomassetti.me> | 2015-03-21 10:44:56 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-03-21 23:18:14 +0100 |
commit | d450cb07d91ef39ad1d39bd7ca0cfce4bd7b13e7 (patch) | |
tree | 74f83e675d9282384a37d2f0e1b66e8bfaf172c4 | |
parent | d3aa307da076e8820298b2c59ec5d6ff01a5e374 (diff) | |
download | ffmpeg-d450cb07d91ef39ad1d39bd7ca0cfce4bd7b13e7.tar.gz |
avplay: Check memory allocation
Bug-Id: CID 1288294
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r-- | avplay.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1580,6 +1580,8 @@ static int video_thread(void *arg) AVFilterContext *filt_out = NULL, *filt_in = NULL; int last_w = is->video_st->codec->width; int last_h = is->video_st->codec->height; + if (!graph) + return AVERROR(ENOMEM); if ((ret = configure_video_filters(graph, is, vfilters)) < 0) goto the_end; |