summaryrefslogtreecommitdiff
path: root/softhddev.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2013-03-06 10:30:27 +0100
committerJohns <johns98@gmx.net>2013-03-06 10:30:27 +0100
commit7db63875d0198c92e0ab554147ad78f88623b173 (patch)
tree9d4b92771653b3d8f7c5b41b3de198a2660363cd /softhddev.c
parent637c04655a61525c624bbb2c2e10e264fe6ba55e (diff)
downloadvdr-plugin-softhddevice-7db63875d0198c92e0ab554147ad78f88623b173.tar.gz
vdr-plugin-softhddevice-7db63875d0198c92e0ab554147ad78f88623b173.tar.bz2
Adds optional only complete mpeg packets support.
Diffstat (limited to 'softhddev.c')
-rw-r--r--softhddev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/softhddev.c b/softhddev.c
index bc05e33..1bb7f2e 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -2249,11 +2249,16 @@ int PlayVideo3(VideoStream * stream, const uint8_t * data, int size)
if (stream->CodecID == CODEC_ID_MPEG2VIDEO) {
// SKIP PES header
VideoMpegEnqueue(stream, pts, data + 9 + n, size - 9 - n);
+#ifndef USE_MPEG_COMPLETE
if (size < 65526) {
// mpeg codec supports incomplete packets
// waiting for a full complete packages, increases needed delays
+ // PES recordings sends incomplete packets
+ // incomplete packets breaks the decoder for some stations
+ // for the new USE_PIP code, this is only a very little improvement
VideoNextPacket(stream, stream->CodecID);
}
+#endif
} else {
// SKIP PES header
VideoEnqueue(stream, pts, data + 9 + n, size - 9 - n);