diff --git a/ffplay.c b/ffplay.c index 8c62f9cf3e..8a9f2ad5b1 100644 --- a/ffplay.c +++ b/ffplay.c @@ -2230,6 +2230,9 @@ static int video_thread(void *arg) int last_vfilter_idx = 0; #endif + if (!frame) + return AVERROR(ENOMEM); + for (;;) { ret = get_video_frame(is, frame); if (ret < 0)