Commit 886f3f2f authored by Martin Storsjö's avatar Martin Storsjö

Return from rtp_read when select returns an error

Originally committed as revision 22219 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 3966a574
......@@ -248,6 +248,8 @@ static int rtp_read(URLContext *h, uint8_t *buf, int size)
}
break;
}
} else if (n < 0) {
return AVERROR(EIO);
}
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment