From 266f241193b2fa8c99bb8b1f007c66bedd3b7d97 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Wed, 4 Feb 2015 14:20:59 +0000 Subject: avplay: Check frame allocation inside video_thread() CC: libav-stable@libav.org Bug-Id: CID 1267893 --- avplay.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'avplay.c') diff --git a/avplay.c b/avplay.c index 9148c04a87..5c6fcfdb0b 100644 --- a/avplay.c +++ b/avplay.c @@ -1587,6 +1587,9 @@ static int video_thread(void *arg) filt_out = is->out_video_filter; #endif + if (!frame) + return AVERROR(ENOMEM); + for (;;) { #if CONFIG_AVFILTER AVRational tb; -- cgit v1.2.3