FS-11436 RTP timestamp field incorrectly calculated based on fps

This commit is contained in:
Sergey Khripchenko
2018-10-04 09:37:49 -07:00
committed by Andrey Volk
parent 8534a4b86a
commit be7c5331f6
7 changed files with 26 additions and 34 deletions
+9
View File
@@ -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;