[FFmpeg-devel] [PATCH 1/4] ffplay: fix video_thread when no frame is returned in get_video_frame

Marton Balint cus at passwd.hu
Tue May 15 01:33:33 CEST 2012


Affects only ffplay build with avfilter disabled.

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

diff --git a/ffplay.c b/ffplay.c
index 3c5ef68..a9d710e 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)
-- 
1.7.3.4



More information about the ffmpeg-devel mailing list