Return from rtp_read when select returns an error

Originally committed as revision 22219 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Martin Storsjö 15 years ago
parent 3966a57464
commit 886f3f2f36
  1. 2
      libavformat/rtpproto.c

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

Loading…
Cancel
Save