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.
|
||||
/// Makefile extracts the version number for generating the file name
|
||||
/// for the distribution archive.
|
||||
static const char *const VERSION = "3.2.3"
|
||||
static const char *const VERSION = "3.2.4"
|
||||
#ifdef GIT_REV
|
||||
"-GIT" GIT_REV
|
||||
#endif
|
||||
|
@ -1490,7 +1490,7 @@ static void VideoNextPacket(VideoStream * stream, int codec_id)
|
||||
VideoResetPacket(stream);
|
||||
}
|
||||
|
||||
#ifdef USE_PIP
|
||||
#if defined(USE_PIP) || defined(VAAPI)
|
||||
|
||||
/**
|
||||
** Place mpeg video data in packet ringbuffer.
|
||||
@ -1943,7 +1943,7 @@ int VideoDecodeInput(VideoStream * stream, int trick)
|
||||
avpkt->size = avpkt->stream_index;
|
||||
avpkt->stream_index = 0;
|
||||
|
||||
#ifdef USE_PIP
|
||||
#if defined(USE_PIP) || defined(VAAPI)
|
||||
// fprintf(stderr, "[");
|
||||
// DumpMpeg(avpkt->data, avpkt->size);
|
||||
#ifdef STILL_DEBUG
|
||||
@ -2305,7 +2305,7 @@ int PlayVideo3(VideoStream * stream, const uint8_t * data, int size)
|
||||
}
|
||||
|
||||
// SKIP PES header, begin of start code
|
||||
#ifdef USE_PIP
|
||||
#if defined(USE_PIP) || defined(VAAPI)
|
||||
VideoMpegEnqueue(stream, pts, dts, check - 2, l + 2);
|
||||
#else
|
||||
VideoEnqueue(stream, pts, dts, check - 2, l + 2);
|
||||
@ -2318,7 +2318,7 @@ int PlayVideo3(VideoStream * stream, const uint8_t * data, int size)
|
||||
return size;
|
||||
}
|
||||
|
||||
#ifdef USE_PIP
|
||||
#if defined(USE_PIP) || defined(VAAPI)
|
||||
if (stream->CodecID == AV_CODEC_ID_MPEG2VIDEO) {
|
||||
// SKIP PES header
|
||||
VideoMpegEnqueue(stream, pts, dts, data + 9 + n, size - 9 - n);
|
||||
|
Loading…
Reference in New Issue
Block a user