summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2012-04-22 02:53:29 +0200
committerMarton Balint <cus@passwd.hu>2012-05-15 00:31:55 +0200
commit89080a0a5ef6913f47265eabddfb99520f5a5e7f (patch)
tree315c38d9a8213bf80bafa68071d93d301d74d7f5 /ffplay.c
parent4c73b3b1e07f0d91bcca33d7555ca570f2f3a394 (diff)
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>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 3c5ef681c5..a9d710e4c5 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)