summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 4785f2d0ec..964408bcc3 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2098,7 +2098,7 @@ static int decode_thread(void *arg)
}
ret = av_read_frame(ic, pkt);
if (ret < 0) {
- if (url_ferror(ic->pb) == 0) {
+ if (ret != AVERROR_EOF && url_ferror(ic->pb) == 0) {
SDL_Delay(100); /* wait for user event */
continue;
} else