Refine code

pull/823/head
winlin 8 years ago
parent 2980e7d3ef
commit c648fd27bf

@ -713,9 +713,8 @@ int SrsFormat::video_avc_demux(SrsBuffer* stream, int64_t timestamp)
// ignored. // ignored.
} }
int size = stream->size() - stream->pos(); srs_info("avc decoded, type=%d, codec=%d, avc=%d, cts=%d, size=%d", frame_type, codec_id, avc_packet_type,
srs_info("avc decoded, type=%d, codec=%d, avc=%d, cts=%d, size=%d", composition_time, stream->size() - stream->pos());
frame_type, codec_id, avc_packet_type, composition_time,size);
return ret; return ret;
} }
@ -1349,9 +1348,9 @@ int SrsFormat::audio_aac_demux(SrsBuffer* stream, int64_t timestamp)
break; break;
}; };
} }
int size = stream->size() - stream->pos();
srs_info("aac decoded, type=%d, codec=%d, asize=%d, rate=%d, format=%d, size=%d", srs_info("aac decoded, type=%d, codec=%d, asize=%d, rate=%d, format=%d, size=%d", sound_type, codec_id, sound_size,
sound_type, codec_id, sound_size, sound_rate, sound_format, size); sound_rate, sound_format, stream->size() - stream->pos());
return ret; return ret;
} }

@ -2810,7 +2810,7 @@ int srs_rtmp_connect_app2(srs_rtmp_t rtmp,
int srs_human_print_rtmp_packet(char type, uint32_t timestamp, char* data, int size) int srs_human_print_rtmp_packet(char type, uint32_t timestamp, char* data, int size)
{ {
return srs_human_print_rtmp_packet(type, timestamp, data, size); return srs_human_print_rtmp_packet3(type, timestamp, data, size, 0, 0);
} }
int srs_human_print_rtmp_packet2(char type, uint32_t timestamp, char* data, int size, uint32_t pre_timestamp) int srs_human_print_rtmp_packet2(char type, uint32_t timestamp, char* data, int size, uint32_t pre_timestamp)

Loading…
Cancel
Save