提交 4c4ef3db 编写于 作者: S Stefano Sabatini

Make url_fsize() return AVERROR(ENOSYS) rather than AVERROR(EPIPE) if

the seek operation is not defined in the ByteIOContext.

Originally committed as revision 22902 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 28894105
......@@ -197,7 +197,7 @@ int64_t url_fsize(ByteIOContext *s)
return AVERROR(EINVAL);
if (!s->seek)
return AVERROR(EPIPE);
return AVERROR(ENOSYS);
size = s->seek(s->opaque, 0, AVSEEK_SIZE);
if(size<0){
if ((size = s->seek(s->opaque, -1, SEEK_END)) < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册