1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

support dvr. change to 0.9.69

This commit is contained in:
winlin 2014-04-17 16:06:49 +08:00
parent 996d042a33
commit 73459547e1
13 changed files with 600 additions and 21 deletions

View file

@ -100,6 +100,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define ERROR_SYSTEM_PID_WRITE_FILE 420
#define ERROR_SYSTEM_PID_GET_FILE_INFO 421
#define ERROR_SYSTEM_PID_SET_FILE_INFO 422
#define ERROR_SYSTEM_FILE_ALREADY_OPENED 423
#define ERROR_SYSTEM_FILE_OPENE 424
#define ERROR_SYSTEM_FILE_CLOSE 425
#define ERROR_SYSTEM_FILE_READ 426
#define ERROR_SYSTEM_FILE_WRITE 427
#define ERROR_SYSTEM_FILE_EOF 428
// see librtmp.
// failed when open ssl create the dh

View file

@ -199,6 +199,16 @@ void SrsStream::write_4bytes(int32_t value)
*p++ = pp[0];
}
void SrsStream::write_3bytes(int32_t value)
{
srs_assert(require(3));
pp = (char*)&value;
*p++ = pp[2];
*p++ = pp[1];
*p++ = pp[0];
}
void SrsStream::write_8bytes(int64_t value)
{
srs_assert(require(8));

View file

@ -118,6 +118,10 @@ public:
*/
virtual void write_4bytes(int32_t value);
/**
* write 3bytes int to stream.
*/
virtual void write_3bytes(int32_t value);
/**
* write 8bytes int to stream.
*/
virtual void write_8bytes(int64_t value);