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

add api convert h264 to rtmp packet, for bug #66

This commit is contained in:
winlin 2014-11-07 22:06:30 +08:00
parent e4af098d06
commit 1c237a821a
3 changed files with 166 additions and 86 deletions

View file

@ -996,6 +996,13 @@ char* srs_amf0_human_print(srs_amf0_t amf0, char** pdata, int* psize)
return any->human_print(pdata, psize);
}
int srs_h264_to_rtmp(char* h264_raw_data, int h264_raw_size, u_int32_t dts, u_int32_t pts, char** prtmp_data, int* prtmp_size, u_int32_t* ptimestamp)
{
*prtmp_data = h264_raw_data;
*prtmp_size = h264_raw_size;
return 0;
}
#ifdef __cplusplus
}
#endif