diff options
author | Vittorio Giovara | 2015-02-04 14:20:59 +0000 |
---|---|---|
committer | Vittorio Giovara | 2015-02-17 11:27:41 -0500 |
commit | 266f241193b2fa8c99bb8b1f007c66bedd3b7d97 (patch) | |
tree | 5cf67a8129da0f109494c8eca10dda4afba629cc /avplay.c | |
parent | 81688e68f93f3142e2093f1a3d226edaeb179992 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |