changeset 5752:cb840f900fef libavformat

Return from rtp_read when select returns an error
author mstorsjo
date Fri, 05 Mar 2010 08:15:20 +0000
parents 4d38b2c2bc59
children 2e5aecabfb1e
files rtpproto.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rtpproto.c	Fri Mar 05 00:22:40 2010 +0000
+++ b/rtpproto.c	Fri Mar 05 08:15:20 2010 +0000
@@ -248,6 +248,8 @@
                 }
                 break;
             }
+        } else if (n < 0) {
+            return AVERROR(EIO);
         }
     }
 #endif