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

drop script data except the onMetaData packet.

This commit is contained in:
winlin 2015-01-17 13:23:30 +08:00
parent cc22ca4890
commit 04aa6f8296
3 changed files with 37 additions and 0 deletions

View file

@ -264,6 +264,11 @@ extern int srs_rtmp_write_packet(srs_rtmp_t rtmp,
char type, u_int32_t timestamp, char* data, int size
);
/**
* whether type is script data and the data is onMetaData.
*/
extern srs_bool srs_rtmp_is_onMetaData(char type, char* data, int size);
/*************************************************************
**************************************************************
* audio raw codec