diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2008-03-06 18:16:49 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2008-03-06 18:16:49 +0000 |
| commit | 6c07ada35bf94c495226f63acaf88ae0a954639e (patch) | |
| tree | 91bbc885a62f43777134da64bce16b3c3e998d69 /lib | |
| parent | 681ca26c3690178504287298ce158d1c9ff68f04 (diff) | |
| download | enigma2-6c07ada35bf94c495226f63acaf88ae0a954639e.tar.gz enigma2-6c07ada35bf94c495226f63acaf88ae0a954639e.zip | |
protect against broken .cuts files
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/service/servicedvb.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp index 2d770fb0..8e8fc5e0 100644 --- a/lib/service/servicedvb.cpp +++ b/lib/service/servicedvb.cpp @@ -2563,7 +2563,16 @@ void eDVBServicePlay::cutlistToCuesheet() } } - if (in != out) + if (in < 0) + in = 0; + if (out < 0) + out = 0; + if (in > length) + in = length; + if (out > length) + out = length; + + if (in < out) m_cue->addSourceSpan(in, out); in = length; |
