mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed detecting the frame rate for streams with PTS distances of 1800
This commit is contained in:
parent
efd7427bbe
commit
ce4c062e0d
2
HISTORY
2
HISTORY
@ -6046,3 +6046,5 @@ Video Disk Recorder Revision History
|
||||
- Added cDevice::NumProvidedSystems() to PLUGINS.html (was missing since it had
|
||||
been implemented).
|
||||
- Fixed distortions when switching to the next file during replay.
|
||||
- Fixed detecting the frame rate for streams with PTS distances of 1800, which
|
||||
apparently split one frame over two payload units.
|
||||
|
6
remux.c
6
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 2.17 2009/04/05 14:07:48 kls Exp $
|
||||
* $Id: remux.c 2.18 2009/04/18 14:53:42 kls Exp $
|
||||
*/
|
||||
|
||||
#include "remux.h"
|
||||
@ -732,6 +732,10 @@ int cFrameDetector::Analyze(const uchar *Data, int Length)
|
||||
frameDuration = 3600; // PAL, 25 fps
|
||||
else if (Delta % 3003 == 0)
|
||||
frameDuration = 3003; // NTSC, 29.97 fps
|
||||
else if (Delta == 1800) {
|
||||
frameDuration = 3600; // PAL, 25 fps
|
||||
framesPerPayloadUnit = -2;
|
||||
}
|
||||
else if (Delta == 1501) {
|
||||
frameDuration = 3003; // NTSC, 29.97 fps
|
||||
framesPerPayloadUnit = -2;
|
||||
|
Loading…
Reference in New Issue
Block a user