OSDN Git Service

Make url_fsize() return AVERROR(ENOSYS) rather than AVERROR(EPIPE) if
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 18 Apr 2010 17:37:21 +0000 (17:37 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 18 Apr 2010 17:37:21 +0000 (17:37 +0000)
the seek operation is not defined in the ByteIOContext.

Originally committed as revision 22902 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/aviobuf.c

index 421a64a..1746d03 100644 (file)
@@ -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)