summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-03-13 13:58:22 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2011-03-13 13:58:22 +0100
commit5f35ff690faf00932d5ab61b38aa7bbc1aca281f (patch)
tree933eaeb4e27c93ea43f85e2c71c9a618b77d3012 /remux.c
parent06a16e7fba544844a81eed011bd8b9b6fc92de7d (diff)
downloadvdr-5f35ff690faf00932d5ab61b38aa7bbc1aca281f.tar.gz
vdr-5f35ff690faf00932d5ab61b38aa7bbc1aca281f.tar.bz2
Fixed some direct comparisons of double values
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/remux.c b/remux.c
index f7ad86dd..afe9180e 100644
--- a/remux.c
+++ b/remux.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remux.c 2.51 2011/02/26 15:51:04 kls Exp $
+ * $Id: remux.c 2.52 2011/03/13 13:57:09 kls Exp $
*/
#include "remux.h"
@@ -833,7 +833,7 @@ int cFrameDetector::Analyze(const uchar *Data, int Length)
return Processed;
if (Length < MIN_TS_PACKETS_FOR_FRAME_DETECTOR * TS_SIZE)
return Processed; // need more data, in case the frame type is not stored in the first TS packet
- if (!framesPerSecond) {
+ if (framesPerSecond <= 0.0) {
// frame rate unknown, so collect a sequence of PTS values:
if (numPtsValues < MaxPtsValues && numIFrames < 2) { // collect a sequence containing at least two I-frames
const uchar *Pes = Data + TsPayloadOffset(Data);
@@ -953,7 +953,7 @@ int cFrameDetector::Analyze(const uchar *Data, int Length)
pid = 0; // let's just ignore any further data
}
}
- if (!synced && framesPerSecond && independentFrame) {
+ if (!synced && framesPerSecond > 0.0 && independentFrame) {
synced = true;
dbgframes("*");
Reset();