Module: libav Branch: master Commit: 266f241193b2fa8c99bb8b1f007c66bedd3b7d97
Author: Vittorio Giovara <[email protected]> Committer: Vittorio Giovara <[email protected]> Date: Wed Feb 4 14:20:59 2015 +0000 avplay: Check frame allocation inside video_thread() CC: [email protected] Bug-Id: CID 1267893 --- avplay.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/avplay.c b/avplay.c index 9148c04..5c6fcfd 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; _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
