mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2025-03-01 10:39:28 +00:00
Fix for pts (fixed hang at the end when playing records). Version 3.7.5
This commit is contained in:
5
video.c
5
video.c
@@ -617,6 +617,8 @@ char *eglErrorString(EGLint error) {
|
||||
static void VideoSetPts(int64_t *pts_p, int interlaced, const AVCodecContext *video_ctx, const AVFrame *frame) {
|
||||
int64_t pts;
|
||||
int duration;
|
||||
static int64_t lastpts;
|
||||
|
||||
|
||||
//
|
||||
// Get duration for this frame.
|
||||
@@ -664,11 +666,12 @@ static void VideoSetPts(int64_t *pts_p, int interlaced, const AVCodecContext *vi
|
||||
Debug(3, "++++++++++++++++++++++++++++++++++++starte audio\n");
|
||||
AudioVideoReady(pts);
|
||||
}
|
||||
if (*pts_p != pts) {
|
||||
if (*pts_p != pts && lastpts != pts) {
|
||||
Debug(4, "video: %#012" PRIx64 "->%#012" PRIx64 " delta=%4" PRId64 " pts\n", *pts_p, pts, pts - *pts_p);
|
||||
*pts_p = pts;
|
||||
}
|
||||
}
|
||||
lastpts = pts;
|
||||
}
|
||||
|
||||
int CuvidMessage(int level, const char *format, ...);
|
||||
|
Reference in New Issue
Block a user