]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpproto.c
Set subtitle codec id correctly, i hope this does not break anything.
[ffmpeg] / libavformat / rtpproto.c
index f56b63f534389d2f4574eb94d8dd4556876ec2b2..d1d5a924773cfbb317f9cfdbaa764baaffecae3a 100644 (file)
@@ -24,6 +24,7 @@
 #include <unistd.h>
 #include <stdarg.h>
 #include "network.h"
+#include "os_support.h"
 #include <fcntl.h>
 
 #define RTP_TX_BUF_SIZE  (64 * 1024)
@@ -163,7 +164,7 @@ static int rtp_open(URLContext *h, const char *uri, int flags)
     if (s->rtcp_hd)
         url_close(s->rtcp_hd);
     av_free(s);
-    return AVERROR_IO;
+    return AVERROR(EIO);
 }
 
 static int rtp_read(URLContext *h, uint8_t *buf, int size)
@@ -182,7 +183,7 @@ static int rtp_read(URLContext *h, uint8_t *buf, int size)
             if (ff_neterrno() == FF_NETERROR(EAGAIN) ||
                 ff_neterrno() == FF_NETERROR(EINTR))
                 continue;
-            return AVERROR_IO;
+            return AVERROR(EIO);
         }
         break;
     }
@@ -206,7 +207,7 @@ static int rtp_read(URLContext *h, uint8_t *buf, int size)
                     if (ff_neterrno() == FF_NETERROR(EAGAIN) ||
                         ff_neterrno() == FF_NETERROR(EINTR))
                         continue;
-                    return AVERROR_IO;
+                    return AVERROR(EIO);
                 }
                 break;
             }
@@ -219,7 +220,7 @@ static int rtp_read(URLContext *h, uint8_t *buf, int size)
                     if (ff_neterrno() == FF_NETERROR(EAGAIN) ||
                         ff_neterrno() == FF_NETERROR(EINTR))
                         continue;
-                    return AVERROR_IO;
+                    return AVERROR(EIO);
                 }
                 break;
             }