[FFmpeg-cvslog] avplay: Check frame allocation inside video_thread()
Vittorio Giovara
git at videolan.org
Tue Feb 17 21:16:14 CET 2015
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed Feb 4 14:20:59 2015 +0000| [266f241193b2fa8c99bb8b1f007c66bedd3b7d97] | committer: Vittorio Giovara
avplay: Check frame allocation inside video_thread()
CC: libav-stable at libav.org
Bug-Id: CID 1267893
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=266f241193b2fa8c99bb8b1f007c66bedd3b7d97
---
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;
More information about the ffmpeg-cvslog
mailing list