Return from rtp_read when select returns an error
authorMartin Storsjö <martin@martin.st>
Fri, 5 Mar 2010 08:15:20 +0000 (08:15 +0000)
committerMartin Storsjö <martin@martin.st>
Fri, 5 Mar 2010 08:15:20 +0000 (08:15 +0000)
Originally committed as revision 22219 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtpproto.c

index 06bd8bf..4af97c1 100644 (file)
@@ -248,6 +248,8 @@ static int rtp_read(URLContext *h, uint8_t *buf, int size)
                 }
                 break;
             }
+        } else if (n < 0) {
+            return AVERROR(EIO);
         }
     }
 #endif