diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2011-08-27 14:27:22 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2011-08-27 14:27:22 +0200 |
commit | 6c110a7272f7a6e57f93f4de4c6792ebbbccbf1e (patch) | |
tree | 79061b207314b628d3c3280abc2d6dc25f546795 /remux.c | |
parent | d2342ae2ef163ca35727dcc1f72df4b253a06154 (diff) | |
download | vdr-6c110a7272f7a6e57f93f4de4c6792ebbbccbf1e.tar.gz vdr-6c110a7272f7a6e57f93f4de4c6792ebbbccbf1e.tar.bz2 |
Fixed detecting frames on radio channels
Diffstat (limited to 'remux.c')
-rw-r--r-- | remux.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: remux.c 2.59 2011/08/20 09:07:26 kls Exp $ + * $Id: remux.c 2.60 2011/08/27 14:20:18 kls Exp $ */ #include "remux.h" @@ -840,7 +840,7 @@ int cFrameDetector::Analyze(const uchar *Data, int Length) return Processed; // flush everything before this new payload 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 + if (numPtsValues < 2 || numPtsValues < MaxPtsValues && numIFrames < 2) { // collect a sequence containing at least two I-frames const uchar *Pes = Data + TsPayloadOffset(Data); if (numIFrames && PesHasPts(Pes)) { ptsValues[numPtsValues] = PesGetPts(Pes); |