diff options
author | phintuka <phintuka> | 2009-04-20 19:21:38 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2009-04-20 19:21:38 +0000 |
commit | d87c8d78ee1a9b24b0d60f4f054c07ab9ba5b160 (patch) | |
tree | 041085118f4903ed5c762a45fede3d56454cdc40 | |
parent | ad202f88fb866b13c51cb41a9eabe87400579e01 (diff) | |
download | xineliboutput-d87c8d78ee1a9b24b0d60f4f054c07ab9ba5b160.tar.gz xineliboutput-d87c8d78ee1a9b24b0d60f4f054c07ab9ba5b160.tar.bz2 |
Quickfix for vdr-1.7.5 TS replay
-rw-r--r-- | device.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |