Commit f8c3b385 authored by pross's avatar pross

FFplay: Stop processing input file when AVERROR_EOF is returned from av_read_frame()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17458 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9fbe0c91
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment