1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Using the frame rate parsed from the stream, with fall back to determining it from PTS values

This commit is contained in:
Klaus Schmidinger 2022-11-22 11:35:37 +01:00
parent 93d578d9b8
commit 035d5fd5b9
2 changed files with 8 additions and 1 deletions

View File

@ -9803,3 +9803,5 @@ Video Disk Recorder Revision History
- Added a chapter about locking to PLUGINS.html (suggested by Markus Ehrnsperger).
- Implemented parsing frame rate and image size for MPEG2, H.264 and H.265 (thanks
to Christoph Haubrich).
- Using the frame rate parsed from the stream, with fall back to determining it from
PTS values.

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: remux.c 5.3 2022/11/22 11:31:39 kls Exp $
* $Id: remux.c 5.4 2022/11/22 11:35:37 kls Exp $
*/
#include "remux.h"
@ -1989,6 +1989,11 @@ int cFrameDetector::Analyze(const uchar *Data, int Length)
scanning = false;
}
else {
if (parser->FramesPerSecond() > 0.0) {
framesPerSecond = parser->FramesPerSecond();
synced = true;
parser->SetDebug(false);
}
framesInPayloadUnit++;
if (independentFrame)
numIFrames++;