summaryrefslogtreecommitdiff
path: root/remux.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-11-01 12:31:52 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-11-01 12:31:52 +0100
commit4f50c34824f0c717dd52e0ce32497b7f421c1c66 (patch)
tree0377ced956428634251511c0a02a44665693ac02 /remux.h
parent55d0d8f9ba440bfdafa4798f1ec2244a0846defc (diff)
downloadvdr-4f50c34824f0c717dd52e0ce32497b7f421c1c66.tar.gz
vdr-4f50c34824f0c717dd52e0ce32497b7f421c1c66.tar.bz2
Fixed detecting frames on channels that broadcast with 50 or 60 fps
Diffstat (limited to 'remux.h')
-rw-r--r--remux.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/remux.h b/remux.h
index 7b621878..7140aaf0 100644
--- a/remux.h
+++ b/remux.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remux.h 2.26 2010/06/05 13:27:55 kls Exp $
+ * $Id: remux.h 2.27 2010/11/01 11:24:20 kls Exp $
*/
#ifndef __REMUX_H
@@ -347,12 +347,10 @@ private:
int numPtsValues;
int numIFrames;
bool isVideo;
- int frameDuration;
+ double framesPerSecond;
int framesInPayloadUnit;
int framesPerPayloadUnit; // Some broadcasters send one frame per payload unit (== 1),
- // some put an entire GOP into one payload unit (> 1), and
- // some spread a single frame over several payload units (< 0).
- int payloadUnitOfFrame;
+ // while others put an entire GOP into one payload unit (> 1).
bool scanning;
uint32_t scanner;
public:
@@ -380,7 +378,7 @@ public:
///< Returns true if a new frame was detected and this is an independent frame
///< (i.e. one that can be displayed by itself, without using data from any
///< other frames).
- double FramesPerSecond(void) { return frameDuration ? 90000.0 / frameDuration : 0; }
+ double FramesPerSecond(void) { return framesPerSecond; }
///< Returns the number of frames per second, or 0 if this information is not
///< available.
};