FS-7967 SmartOS compatibility

configure.ac: honor NetBSD and SmartOS in search for system lua
src/switch_utf8.c: remove switch_u8_vprintf and switch_u8_printf
replace u_int32_t with C99 standard uint32_t, and also the same for
  8,16,64 bit
This commit is contained in:
Stanislav Sinyagin committed 2015-09-09 21:39:41 +00:00
1 parent 4df2476564
commit 98a190a107
9 files changed
+29 -69

No files matched your search

+2 -2
View File
@@ -266,7 +266,7 @@ static void *SWITCH_THREAD_FUNC play_video_function(switch_thread_t *thread, voi
{
AVParams * pt = reinterpret_cast<AVParams*>(obj);
u_int next = 0, first = 0xffffffff;
u_int64_t ts = 0, control = 0;
uint64_t ts = 0, control = 0;
bool ok;
bool sent = true;
@@ -323,7 +323,7 @@ static void *SWITCH_THREAD_FUNC play_audio_function(switch_thread_t *thread, voi
{
AVParams * pt = reinterpret_cast<AVParams*>(obj);
u_int next = 0, first = 0xffffffff;
u_int64_t ts = 0, control = 0;
uint64_t ts = 0, control = 0;
bool ok;
bool sent = true;
+1 -1
View File
@@ -129,7 +129,7 @@ namespace MP4
}
ts = rt.last_frame;
if (!MP4ReadRtpPacket(fh, hint, rt.packet, (u_int8_t **) &buffer, &size, 0, header, true)) return false;
if (!MP4ReadRtpPacket(fh, hint, rt.packet, (uint8_t **) &buffer, &size, 0, header, true)) return false;
++rt.packet;
return true;
}
+7 -7
View File
@@ -56,10 +56,10 @@ namespace MP4
};
struct RuntimeProperties {
u_int32_t frame; // sampleID
u_int16_t packetsPerFrame;
u_int16_t packet; // packetID
u_int32_t last_frame; // timestamp
uint32_t frame; // sampleID
uint16_t packetsPerFrame;
uint16_t packet; // packetID
uint32_t last_frame; // timestamp
RuntimeProperties(): frame(0), packetsPerFrame(0), packet(0)
{
@@ -72,9 +72,9 @@ namespace MP4
MP4TrackId track;
char * codecName;
u_int8_t payload;
u_int32_t clock;
u_int32_t packetLength; // packet Length in time (ms)
uint8_t payload;
uint32_t clock;
uint32_t packetLength; // packet Length in time (ms)
RuntimeProperties runtime;