mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
fix the warning of ts_info
This commit is contained in:
parent
47b4b694be
commit
c5dd334645
2 changed files with 4 additions and 3 deletions
|
@ -2255,9 +2255,9 @@ int main(int argc, char** argv)
|
|||
int64_t pcr = msg->pcr;
|
||||
static int64_t last_pcr_dts = 0;
|
||||
trace("demuxer+report id=%d, type=%s, size=%d, dts=%d, pts=%d, cts=%d, pcr=%d, dts-pcr=%d, ref=%d, unit=%d, dts(diff-pcr)=%d",
|
||||
ctx.ts_packet_count, (msg->type == TSPidTypeVideo)? "video":"audio",
|
||||
msg->parsed_packet_size, dts, pts, pts - dts, pcr, pcr? dts - pcr : 0,
|
||||
msg->nal_ref_idc, msg->nal_unit_type, pcr? dts - last_pcr_dts: 0);
|
||||
(int)ctx.ts_packet_count, (msg->type == TSPidTypeVideo)? "video":"audio",
|
||||
(int)msg->parsed_packet_size, (int)dts, (int)pts, (int)(pts - dts), (int)pcr, (int)(pcr? dts - pcr : 0),
|
||||
(int)msg->nal_ref_idc, (int)msg->nal_unit_type, (int)(pcr? dts - last_pcr_dts: 0));
|
||||
if (pcr > 0) {
|
||||
last_pcr_dts = dts;
|
||||
}
|
||||
|
|
|
@ -32,3 +32,4 @@ LIBS += \
|
|||
../../../objs/openssl/lib/libssl.a \
|
||||
../../../objs/openssl/lib/libcrypto.a \
|
||||
-ldl
|
||||
|
||||
|
|
Loading…
Reference in a new issue