提交 f6cf6fbc 编写于 作者: B bbcallen

ffplay: improve av_read_frame error detect

上级 2754a003
...@@ -2272,9 +2272,9 @@ static int read_thread(void *arg) ...@@ -2272,9 +2272,9 @@ static int read_thread(void *arg)
} }
ret = av_read_frame(ic, pkt); ret = av_read_frame(ic, pkt);
if (ret < 0) { if (ret < 0) {
if (ret == AVERROR_EOF || url_feof(ic->pb)) { if (ret == AVERROR_EOF || url_feof(ic->pb))
eof = 1; eof = 1;
} else if (ic->pb && ic->pb->error) { if (ic->pb && ic->pb->error) {
// TODO: 9 notify error until a/v finished // TODO: 9 notify error until a/v finished
last_error = ic->pb->error; last_error = ic->pb->error;
ALOGE("av_read_frame error: %d\n", ic->pb->error); ALOGE("av_read_frame error: %d\n", ic->pb->error);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册