diff --git a/HISTORY b/HISTORY index 807f1325..d020183f 100644 --- a/HISTORY +++ b/HISTORY @@ -10037,3 +10037,4 @@ Video Disk Recorder Revision History 2024-10-13: - Removed all DEPRECATED_* code. +- Fixed error checking in case the fps value can't be determined by the frame parser. diff --git a/remux.c b/remux.c index 284789f3..31be167a 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 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" @@ -2274,6 +2274,7 @@ int cFrameDetector::Analyze(const uchar *Data, int Length, bool ErrorCheck) } else // audio 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()); synced = true; parser->SetDebug(false);