[FFmpeg-cvslog] ffplay: fix video_thread when no frame is returned in get_video_frame

Marton Balint git at videolan.org
Fri May 18 04:52:57 CEST 2012


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sun Apr 22 02:53:29 2012 +0200| [89080a0a5ef6913f47265eabddfb99520f5a5e7f] | committer: Marton Balint

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 at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=89080a0a5ef6913f47265eabddfb99520f5a5e7f
---

 ffplay.c |    2 ++
 1 file changed, 2 insertions(+)

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)



More information about the ffmpeg-cvslog mailing list