aboutsummaryrefslogtreecommitdiff
path: root/avplay.c
diff options
context:
space:
mode:
authorVittorio Giovara2015-02-04 14:20:59 +0000
committerVittorio Giovara2015-02-17 11:27:41 -0500
commit266f241193b2fa8c99bb8b1f007c66bedd3b7d97 (patch)
tree5cf67a8129da0f109494c8eca10dda4afba629cc /avplay.c
parent81688e68f93f3142e2093f1a3d226edaeb179992 (diff)
avplay: Check frame allocation inside video_thread()
CC: libav-stable@libav.org Bug-Id: CID 1267893
Diffstat (limited to 'avplay.c')
-rw-r--r--avplay.c3
1 files changed, 3 insertions, 0 deletions
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;