Line 0
Link Here
|
|
|
1 |
--- dvbdevice.c.orig |
2 |
+++ dvbdevice.c |
3 |
@@ -766,7 +766,7 @@ bool cDvbTuner::SetFrontend(void) |
4 |
CHECK(ioctl(fd_frontend, FE_SET_VOLTAGE, volt)); |
5 |
CHECK(ioctl(fd_frontend, FE_SET_TONE, tone)); |
6 |
} |
7 |
- frequency = abs(frequency); // Allow for C-band, where the frequency is less than the LOF |
8 |
+ frequency = abs((int)frequency); // Allow for C-band, where the frequency is less than the LOF |
9 |
|
10 |
// DVB-S/DVB-S2 (common parts) |
11 |
SETCMD(DTV_FREQUENCY, frequency * 1000UL); |
12 |
--- remux.c.orig 2012-03-02 11:56:49.000000000 +0100 |
13 |
+++ remux.c 2016-04-02 19:05:34.753289000 +0200 |
14 |
@@ -890,11 +943,11 @@ int cFrameDetector::Analyze(const uchar |
15 |
uint32_t Delta = ptsValues[0]; |
16 |
// determine frame info: |
17 |
if (isVideo) { |
18 |
- if (abs(Delta - 3600) <= 1) |
19 |
+ if (abs((int)Delta - 3600) <= 1) |
20 |
framesPerSecond = 25.0; |
21 |
else if (Delta % 3003 == 0) |
22 |
framesPerSecond = 30.0 / 1.001; |
23 |
- else if (abs(Delta - 1800) <= 1) { |
24 |
+ else if (abs((int)Delta - 1800) <= 1) { |
25 |
if (numFrames > 50) { |
26 |
// this is a "best guess": if there are more than 50 frames between two I-frames, we assume each "frame" actually contains a "field", so two "fields" make one "frame" |
27 |
framesPerSecond = 25.0; |