IRT-Open-Source / scf

Subtitling Conversion Framework
Apache License 2.0
52 stars 18 forks source link

STLXML2STL: conversion aborts if more than two subtitle lines are used #52

Closed spoeschel closed 5 years ago

spoeschel commented 6 years ago

When a subtitles uses more than two lines and for every line the 40 bytes of a Teletext line are used (e.g. 3 lines resulting in 3*40=120 bytes, plus line breaks), the capacity of a single TTI block (112 bytes) is exceeded. Hence the conversion aborts, as the case of multiple TTI block is currently not covered. Instead the conversion tries to apply a TTI block padding with a negative length, e.g.:

Stopped at stlxml2stl.xqm, 176/20:
[bin:negative-size] Size '-9' is negative.