Fixed error checking in case the fps value can't be determined by the frame parser

This commit is contained in:
Klaus Schmidinger 2024-10-13 13:34:32 +02:00
parent 66fea5c9f1
commit 4030698007
2 changed files with 3 additions and 1 deletions

View File

@ -10037,3 +10037,4 @@ Video Disk Recorder Revision History
2024-10-13: 2024-10-13:
- Removed all DEPRECATED_* code. - Removed all DEPRECATED_* code.
- Fixed error checking in case the fps value can't be determined by the frame parser.

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: remux.c 5.14 2024/10/08 08:46:38 kls Exp $ * $Id: remux.c 5.15 2024/10/13 13:34:32 kls Exp $
*/ */
#include "remux.h" #include "remux.h"
@ -2274,6 +2274,7 @@ int cFrameDetector::Analyze(const uchar *Data, int Length, bool ErrorCheck)
} }
else // audio else // audio
framesPerSecond = double(PTSTICKS) / Delta; // PTS of audio frames is always increasing framesPerSecond = double(PTSTICKS) / Delta; // PTS of audio frames is always increasing
frameChecker->SetFrameDelta(Delta);
dbgframes("\nDelta = %d FPS = %5.2f FPPU = %d NF = %d TRO = %d\n", Delta, framesPerSecond, framesPerPayloadUnit, numPtsValues + 1, parser->IFrameTemporalReferenceOffset()); dbgframes("\nDelta = %d FPS = %5.2f FPPU = %d NF = %d TRO = %d\n", Delta, framesPerSecond, framesPerPayloadUnit, numPtsValues + 1, parser->IFrameTemporalReferenceOffset());
synced = true; synced = true;
parser->SetDebug(false); parser->SetDebug(false);