summaryrefslogtreecommitdiff
path: root/avplay.c
diff options
context:
space:
mode:
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;