mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
Fix playback for old PES recordings with vaapi
This commit is contained in:
parent
072e1d6847
commit
184cc1aa05
@ -61,7 +61,7 @@ extern "C"
|
|||||||
/// vdr-plugin version number.
|
/// vdr-plugin version number.
|
||||||
/// Makefile extracts the version number for generating the file name
|
/// Makefile extracts the version number for generating the file name
|
||||||
/// for the distribution archive.
|
/// for the distribution archive.
|
||||||
static const char *const VERSION = "3.2.3"
|
static const char *const VERSION = "3.2.4"
|
||||||
#ifdef GIT_REV
|
#ifdef GIT_REV
|
||||||
"-GIT" GIT_REV
|
"-GIT" GIT_REV
|
||||||
#endif
|
#endif
|
||||||
|
@ -1490,7 +1490,7 @@ static void VideoNextPacket(VideoStream * stream, int codec_id)
|
|||||||
VideoResetPacket(stream);
|
VideoResetPacket(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_PIP
|
#if defined(USE_PIP) || defined(VAAPI)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
** Place mpeg video data in packet ringbuffer.
|
** Place mpeg video data in packet ringbuffer.
|
||||||
@ -1943,7 +1943,7 @@ int VideoDecodeInput(VideoStream * stream, int trick)
|
|||||||
avpkt->size = avpkt->stream_index;
|
avpkt->size = avpkt->stream_index;
|
||||||
avpkt->stream_index = 0;
|
avpkt->stream_index = 0;
|
||||||
|
|
||||||
#ifdef USE_PIP
|
#if defined(USE_PIP) || defined(VAAPI)
|
||||||
// fprintf(stderr, "[");
|
// fprintf(stderr, "[");
|
||||||
// DumpMpeg(avpkt->data, avpkt->size);
|
// DumpMpeg(avpkt->data, avpkt->size);
|
||||||
#ifdef STILL_DEBUG
|
#ifdef STILL_DEBUG
|
||||||
@ -2305,7 +2305,7 @@ int PlayVideo3(VideoStream * stream, const uint8_t * data, int size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SKIP PES header, begin of start code
|
// SKIP PES header, begin of start code
|
||||||
#ifdef USE_PIP
|
#if defined(USE_PIP) || defined(VAAPI)
|
||||||
VideoMpegEnqueue(stream, pts, dts, check - 2, l + 2);
|
VideoMpegEnqueue(stream, pts, dts, check - 2, l + 2);
|
||||||
#else
|
#else
|
||||||
VideoEnqueue(stream, pts, dts, check - 2, l + 2);
|
VideoEnqueue(stream, pts, dts, check - 2, l + 2);
|
||||||
@ -2318,7 +2318,7 @@ int PlayVideo3(VideoStream * stream, const uint8_t * data, int size)
|
|||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_PIP
|
#if defined(USE_PIP) || defined(VAAPI)
|
||||||
if (stream->CodecID == AV_CODEC_ID_MPEG2VIDEO) {
|
if (stream->CodecID == AV_CODEC_ID_MPEG2VIDEO) {
|
||||||
// SKIP PES header
|
// SKIP PES header
|
||||||
VideoMpegEnqueue(stream, pts, dts, data + 9 + n, size - 9 - n);
|
VideoMpegEnqueue(stream, pts, dts, data + 9 + n, size - 9 - n);
|
||||||
|
Loading…
Reference in New Issue
Block a user