Commit 4c4ef3db authored by Stefano Sabatini's avatar 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
parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment