[FFmpeg-cvslog] r22902 - trunk/libavformat/aviobuf.c

stefano subversion
Sun Apr 18 19:37:21 CEST 2010


Author: stefano
Date: Sun Apr 18 19:37:21 2010
New Revision: 22902

Log:
Make url_fsize() return AVERROR(ENOSYS) rather than AVERROR(EPIPE) if
the seek operation is not defined in the ByteIOContext.

Modified:
   trunk/libavformat/aviobuf.c

Modified: trunk/libavformat/aviobuf.c
==============================================================================
--- trunk/libavformat/aviobuf.c	Sun Apr 18 19:37:16 2010	(r22901)
+++ trunk/libavformat/aviobuf.c	Sun Apr 18 19:37:21 2010	(r22902)
@@ -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)



More information about the ffmpeg-cvslog mailing list