summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2009-04-20 19:21:38 +0000
committerphintuka <phintuka>2009-04-20 19:21:38 +0000
commitd87c8d78ee1a9b24b0d60f4f054c07ab9ba5b160 (patch)
tree041085118f4903ed5c762a45fede3d56454cdc40
parentad202f88fb866b13c51cb41a9eabe87400579e01 (diff)
downloadxineliboutput-d87c8d78ee1a9b24b0d60f4f054c07ab9ba5b160.tar.gz
xineliboutput-d87c8d78ee1a9b24b0d60f4f054c07ab9ba5b160.tar.bz2
Quickfix for vdr-1.7.5 TS replay
-rw-r--r--device.c4
1 files changed, 3 insertions, 1 deletions
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) {