mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
28894105c8
commit
4c4ef3db4b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user