[FFmpeg-cvslog] r25671 - trunk/libavformat/tcp.c

rbultje subversion
Thu Nov 4 14:53:16 CET 2010


Author: rbultje
Date: Thu Nov  4 14:53:16 2010
New Revision: 25671

Log:
Remove two instances of AVERROR(ff_neterrno()), because ff_neterrno() itself
already does AVERROR().

Modified:
   trunk/libavformat/tcp.c

Modified: trunk/libavformat/tcp.c
==============================================================================
--- trunk/libavformat/tcp.c	Thu Nov  4 11:38:39 2010	(r25670)
+++ trunk/libavformat/tcp.c	Thu Nov  4 14:53:16 2010	(r25671)
@@ -155,7 +155,7 @@ static int tcp_read(URLContext *h, uint8
             if (len < 0) {
                 if (ff_neterrno() != FF_NETERROR(EINTR) &&
                     ff_neterrno() != FF_NETERROR(EAGAIN))
-                    return AVERROR(ff_neterrno());
+                    return ff_neterrno();
             } else return len;
         } else if (ret < 0) {
             if (ff_neterrno() == FF_NETERROR(EINTR))
@@ -187,7 +187,7 @@ static int tcp_write(URLContext *h, cons
             if (len < 0) {
                 if (ff_neterrno() != FF_NETERROR(EINTR) &&
                     ff_neterrno() != FF_NETERROR(EAGAIN))
-                    return AVERROR(ff_neterrno());
+                    return ff_neterrno();
                 continue;
             }
             size -= len;



More information about the ffmpeg-cvslog mailing list