From 89080a0a5ef6913f47265eabddfb99520f5a5e7f Mon Sep 17 00:00:00 2001
From: Marton Balint <cus@passwd.hu>
Date: Sun, 22 Apr 2012 02:53:29 +0200
Subject: [PATCH] ffplay: fix video_thread when no frame is returned in
 get_video_frame

Affects only ffplay build with avfilter disabled.

Signed-off-by: Marton Balint <cus@passwd.hu>
---
 ffplay.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ffplay.c b/ffplay.c
index 3c5ef681c55..a9d710e4c58 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1872,6 +1872,8 @@ static int video_thread(void *arg)
         ret = get_video_frame(is, frame, &pts_int, &pkt);
         pos = pkt.pos;
         av_free_packet(&pkt);
+        if (ret == 0)
+            continue;
 #endif
 
         if (ret < 0)
-- 
GitLab