提交 edf9b2f0 编写于 作者: P Peter Ross

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

Originally committed as revision 17458 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 0e9602ef
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册