mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Remove warning: C++11 requires a space between string literal and macro (#874)
On Ubuntu 17.04, the default gcc compiler version is 6.3.0. It switch standard from c++98 to c++11. So it would generate verbose warnings.
This commit is contained in:
parent
a58874178b
commit
815d50f00a
32 changed files with 114 additions and 114 deletions
|
@ -1142,7 +1142,7 @@ int SrsTsAdaptationField::decode(SrsBuffer* stream)
|
|||
nb_af_reserved = adaption_field_length - (stream->pos() - pos_af);
|
||||
stream->skip(nb_af_reserved);
|
||||
|
||||
srs_info("ts: af parsed, discontinuity=%d random=%d priority=%d PCR=%d OPCR=%d slicing=%d private=%d extension=%d/%d pcr=%"PRId64"/%d opcr=%"PRId64"/%d",
|
||||
srs_info("ts: af parsed, discontinuity=%d random=%d priority=%d PCR=%d OPCR=%d slicing=%d private=%d extension=%d/%d pcr=%" PRId64 "/%d opcr=%" PRId64 "/%d",
|
||||
discontinuity_indicator, random_access_indicator, elementary_stream_priority_indicator, PCR_flag, OPCR_flag, splicing_point_flag,
|
||||
transport_private_data_flag, adaptation_field_extension_flag, adaptation_field_extension_length, program_clock_reference_base,
|
||||
program_clock_reference_extension, original_program_clock_reference_base, original_program_clock_reference_extension);
|
||||
|
@ -1323,7 +1323,7 @@ int SrsTsAdaptationField::encode(SrsBuffer* stream)
|
|||
stream->skip(nb_af_reserved);
|
||||
}
|
||||
|
||||
srs_info("ts: af parsed, discontinuity=%d random=%d priority=%d PCR=%d OPCR=%d slicing=%d private=%d extension=%d/%d pcr=%"PRId64"/%d opcr=%"PRId64"/%d",
|
||||
srs_info("ts: af parsed, discontinuity=%d random=%d priority=%d PCR=%d OPCR=%d slicing=%d private=%d extension=%d/%d pcr=%" PRId64 "/%d opcr=%" PRId64 "/%d",
|
||||
discontinuity_indicator, random_access_indicator, elementary_stream_priority_indicator, PCR_flag, OPCR_flag, splicing_point_flag,
|
||||
transport_private_data_flag, adaptation_field_extension_flag, adaptation_field_extension_length, program_clock_reference_base,
|
||||
program_clock_reference_extension, original_program_clock_reference_base, original_program_clock_reference_extension);
|
||||
|
@ -1563,7 +1563,7 @@ int SrsTsPayloadPES::decode(SrsBuffer* stream, SrsTsMessage** ppmsg)
|
|||
|
||||
// check sync, the diff of dts and pts should never greater than 1s.
|
||||
if (dts - pts > 90000 || pts - dts > 90000) {
|
||||
srs_warn("ts: sync dts=%"PRId64", pts=%"PRId64, dts, pts);
|
||||
srs_warn("ts: sync dts=%" PRId64 ", pts=%" PRId64, dts, pts);
|
||||
}
|
||||
|
||||
// update the dts and pts of message.
|
||||
|
@ -1923,7 +1923,7 @@ int SrsTsPayloadPES::encode(SrsBuffer* stream)
|
|||
|
||||
// check sync, the diff of dts and pts should never greater than 1s.
|
||||
if (dts - pts > 90000 || pts - dts > 90000) {
|
||||
srs_warn("ts: sync dts=%"PRId64", pts=%"PRId64, dts, pts);
|
||||
srs_warn("ts: sync dts=%" PRId64 ", pts=%" PRId64, dts, pts);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2753,7 +2753,7 @@ int SrsTsContextWriter::write_audio(SrsTsMessage* audio)
|
|||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
srs_info("hls: write audio pts=%"PRId64", dts=%"PRId64", size=%d",
|
||||
srs_info("hls: write audio pts=%" PRId64 ", dts=%" PRId64 ", size=%d",
|
||||
audio->pts, audio->dts, audio->PES_packet_length);
|
||||
|
||||
if ((ret = context->encode(writer, audio, vcodec, acodec)) != ERROR_SUCCESS) {
|
||||
|
@ -2769,7 +2769,7 @@ int SrsTsContextWriter::write_video(SrsTsMessage* video)
|
|||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
srs_info("hls: write video pts=%"PRId64", dts=%"PRId64", size=%d",
|
||||
srs_info("hls: write video pts=%" PRId64 ", dts=%" PRId64 ", size=%d",
|
||||
video->pts, video->dts, video->PES_packet_length);
|
||||
|
||||
if ((ret = context->encode(writer, video, vcodec, acodec)) != ERROR_SUCCESS) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue