mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 18:40:09 +00:00
Transmit: handle better FPS < 1.0
This commit is contained in:
@@ -441,12 +441,15 @@ static uint32_t format_interl_fps_hdr_row(enum interlacing_t interlacing, double
|
||||
|
||||
tmp = interlacing << 29;
|
||||
fps = round(input_fps);
|
||||
fpsd = 1;
|
||||
if(fabs(input_fps - round(input_fps) / 1.001) < 0.005)
|
||||
fd = 1;
|
||||
else
|
||||
fd = 0;
|
||||
fpsd = 1; /// @todo make use of this value (for now it is always one)
|
||||
fd = 0;
|
||||
fi = 0;
|
||||
if (input_fps > 1.0 && fabs(input_fps - round(input_fps) / 1.001) < 0.005) { // 29.97 etc.
|
||||
fd = 1;
|
||||
} else if (fps < 1.0) {
|
||||
fps = round(1.0 / input_fps);
|
||||
fi = 1;
|
||||
}
|
||||
|
||||
tmp |= fps << 19;
|
||||
tmp |= fpsd << 15;
|
||||
|
||||
Reference in New Issue
Block a user