From d87c8d78ee1a9b24b0d60f4f054c07ab9ba5b160 Mon Sep 17 00:00:00 2001 From: phintuka Date: Mon, 20 Apr 2009 19:21:38 +0000 Subject: Quickfix for vdr-1.7.5 TS replay --- device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/device.c b/device.c index 8aa450bb..ca878f92 100644 --- a/device.c +++ b/device.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: device.c,v 1.75 2009-03-19 19:42:41 phintuka Exp $ + * $Id: device.c,v 1.76 2009-04-20 19:21:38 phintuka Exp $ * */ @@ -1123,6 +1123,8 @@ int cXinelibDevice::PlayAny(const uchar *buf, int length) */ int cXinelibDevice::PlayTs(const uchar *Data, int Length, bool VideoOnly) { + if (Length > TS_SIZE) Length = TS_SIZE; + if (Length == TS_SIZE && TsHasPayload(Data)) { int PayloadOffset = TsPayloadOffset(Data); if (PayloadOffset < Length) { -- cgit v1.2.3