mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
FS-11436 RTP timestamp field incorrectly calculated based on fps
This commit is contained in:
committed by
Andrey Volk
parent
8534a4b86a
commit
be7c5331f6
@@ -1072,6 +1072,15 @@ static inline int32_t switch_calc_bitrate(int w, int h, int quality, double fps)
|
||||
|
||||
}
|
||||
|
||||
static inline void switch_calc_fps(switch_fps_t *fpsP, float fps, int samplerate)
|
||||
{
|
||||
fpsP->fps = fps;
|
||||
fpsP->ms = (int)(1000 / fps);
|
||||
fpsP->samples = (int)(samplerate / fps);
|
||||
return;
|
||||
}
|
||||
#define switch_calc_video_fps(fpsP, fps) switch_calc_fps(fpsP, fps, 90000)
|
||||
|
||||
static inline int32_t switch_parse_bandwidth_string(const char *bwv)
|
||||
{
|
||||
float bw = 0;
|
||||
|
||||
Reference in New Issue
Block a user