@@ -13,6 +13,7 @@ import {normRangeValues} from "./utils/norm_range_values.js";
13
13
import { processVideoParams } from "./transformationProcessing/processVideoParams.js" ;
14
14
import Transformation from "./transformation.js" ;
15
15
import { processDpr } from "./transformationProcessing/processDpr.js" ;
16
+ import { isNumberLike } from "./utils/isNumberLike" ;
16
17
17
18
18
19
@@ -171,12 +172,12 @@ export function generateTransformationString(transformationOptions: LegacyITrans
171
172
dl : transformationOptions . delay ,
172
173
dn : transformationOptions . density ,
173
174
du : normRangeValues ( transformationOptions . duration ) ,
174
- eo : normRangeValues ( splitRange ( transformationOptions . offset ) [ 1 ] ) ,
175
+ eo : normRangeValues ( transformationOptions . end_offset || isNumberLike ( transformationOptions . end_offset ) ? transformationOptions . end_offset : splitRange ( transformationOptions . offset ) [ 1 ] ) ,
175
176
f : transformationOptions . fetch_format ,
176
177
g : transformationOptions . gravity ,
177
178
pg : transformationOptions . page ,
178
179
p : transformationOptions . prefix ,
179
- so : normRangeValues ( splitRange ( transformationOptions . offset ) [ 0 ] ) ,
180
+ so : normRangeValues ( transformationOptions . start_offset || isNumberLike ( transformationOptions . start_offset ) ? transformationOptions . start_offset : splitRange ( transformationOptions . offset ) [ 0 ] ) ,
180
181
sp : transformationOptions . streaming_profile ,
181
182
vc : processVideoParams ( transformationOptions . video_codec ) ,
182
183
vs : transformationOptions . video_sampling
0 commit comments