mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Fixed error checking in case the fps value can't be determined by the frame parser
This commit is contained in:
parent
66fea5c9f1
commit
4030698007
1
HISTORY
1
HISTORY
@ -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.
|
||||||
|
3
remux.c
3
remux.c
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user