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

update donation

This commit is contained in:
winlin 2015-05-08 07:04:31 +08:00
parent 0fd23c85cc
commit ac13817aae
4 changed files with 27 additions and 13 deletions

View file

@ -256,6 +256,7 @@ int main(int argc, char** argv)
}
}
u_int32_t pre_timestamp = 0;
for (;;) {
int size;
char type;
@ -267,10 +268,11 @@ int main(int argc, char** argv)
goto rtmp_destroy;
}
if (srs_human_print_rtmp_packet(type, timestamp, data, size) != 0) {
if (srs_human_print_rtmp_packet2(type, timestamp, data, size, pre_timestamp) != 0) {
srs_human_trace("print rtmp packet failed.");
goto rtmp_destroy;
}
pre_timestamp = timestamp;
// we only write some types of messages to flv file.
int is_flv_msg = type == SRS_RTMP_TYPE_AUDIO