mirror of
https://github.com/ossrs/srs.git
synced 2025-02-14 20:31:56 +00:00
Refine code
This commit is contained in:
parent
2980e7d3ef
commit
c648fd27bf
2 changed files with 6 additions and 7 deletions
|
@ -713,9 +713,8 @@ int SrsFormat::video_avc_demux(SrsBuffer* stream, int64_t timestamp)
|
|||
// 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, composition_time,size);
|
||||
srs_info("avc decoded, type=%d, codec=%d, avc=%d, cts=%d, size=%d", frame_type, codec_id, avc_packet_type,
|
||||
composition_time, stream->size() - stream->pos());
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -1349,9 +1348,9 @@ int SrsFormat::audio_aac_demux(SrsBuffer* stream, int64_t timestamp)
|
|||
break;
|
||||
};
|
||||
}
|
||||
int size = stream->size() - stream->pos();
|
||||
srs_info("aac decoded, type=%d, codec=%d, asize=%d, rate=%d, format=%d, size=%d",
|
||||
sound_type, codec_id, sound_size, sound_rate, sound_format, size);
|
||||
|
||||
srs_info("aac decoded, type=%d, codec=%d, asize=%d, rate=%d, format=%d, size=%d", sound_type, codec_id, sound_size,
|
||||
sound_rate, sound_format, stream->size() - stream->pos());
|
||||
|
||||
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)
|
||||
{
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue