home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Watch / Listen Media
Teletext subtitles not parsed correctly.
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mm1352000" data-source="post: 1229982" data-attributes="member: 82144"><p>Hello</p><p></p><p>I can see the problem in the code. Unfortunately I can no longer build a patch for you to try. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p></p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/Core/Player/Teletext/PESDecoder.cs#L151" target="_blank">MediaPortal-1/PESDecoder.cs at master · MediaPortal/MediaPortal-1 · GitHub</a></p><p></p><p>Current code:</p><p>[code] assert(pos >= 0 && pos <= tsPacket.Length - 8, "PESDECODER: pos " + pos + " would cause an IndexOutOfBounds exception!");</p><p></p><p> if (header.PayloadUnitStart) // if this header starts a new PES packet</p><p> {</p><p> //Log.Debug("PESDECODER: PayLoadUnitStart");</p><p> hasPayloadStart = true;</p><p> if (tsPacket[pos + 0] == 0 && tsPacket[pos + 1] == 0 && tsPacket[pos + 2] == 1)</p><p> {</p><p> int streamId = tsPacket[pos + 3];</p><p>[/code]</p><p></p><p>Better code:</p><p>[code] if (header.PayloadUnitStart) // if this header starts a new PES packet</p><p> {</p><p> assert(pos >= 0 && pos <= tsPacket.Length - 3, "PESDECODER: pos " + pos + " would cause an IndexOutOfBounds exception!");</p><p> //Log.Debug("PESDECODER: PayLoadUnitStart");</p><p> hasPayloadStart = true;</p><p> if (tsPacket[pos + 0] == 0 && tsPacket[pos + 1] == 0 && tsPacket[pos + 2] == 1)</p><p> {</p><p> assert(pos >= 0 && pos <= tsPacket.Length - 9, "PESDECODER: pos " + pos + " would cause an IndexOutOfBounds exception!");</p><p> int streamId = tsPacket[pos + 3];</p><p>[/code]</p></blockquote><p></p>
[QUOTE="mm1352000, post: 1229982, member: 82144"] Hello I can see the problem in the code. Unfortunately I can no longer build a patch for you to try. :( [URL="https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/Core/Player/Teletext/PESDecoder.cs#L151"]MediaPortal-1/PESDecoder.cs at master · MediaPortal/MediaPortal-1 · GitHub[/URL] Current code: [code] assert(pos >= 0 && pos <= tsPacket.Length - 8, "PESDECODER: pos " + pos + " would cause an IndexOutOfBounds exception!"); if (header.PayloadUnitStart) // if this header starts a new PES packet { //Log.Debug("PESDECODER: PayLoadUnitStart"); hasPayloadStart = true; if (tsPacket[pos + 0] == 0 && tsPacket[pos + 1] == 0 && tsPacket[pos + 2] == 1) { int streamId = tsPacket[pos + 3]; [/code] Better code: [code] if (header.PayloadUnitStart) // if this header starts a new PES packet { assert(pos >= 0 && pos <= tsPacket.Length - 3, "PESDECODER: pos " + pos + " would cause an IndexOutOfBounds exception!"); //Log.Debug("PESDECODER: PayLoadUnitStart"); hasPayloadStart = true; if (tsPacket[pos + 0] == 0 && tsPacket[pos + 1] == 0 && tsPacket[pos + 2] == 1) { assert(pos >= 0 && pos <= tsPacket.Length - 9, "PESDECODER: pos " + pos + " would cause an IndexOutOfBounds exception!"); int streamId = tsPacket[pos + 3]; [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
Teletext subtitles not parsed correctly.
Contact us
RSS
Top
Bottom