@@ -13,6 +13,7 @@ import {normRangeValues} from "./utils/norm_range_values.js";
1313import { processVideoParams } from "./transformationProcessing/processVideoParams.js" ;
1414import Transformation from "./transformation.js" ;
1515import { processDpr } from "./transformationProcessing/processDpr.js" ;
16+ import { isNumberLike } from "./utils/isNumberLike" ;
1617
1718
1819
@@ -171,12 +172,12 @@ export function generateTransformationString(transformationOptions: LegacyITrans
171172 dl : transformationOptions . delay ,
172173 dn : transformationOptions . density ,
173174 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 ] ) ,
175176 f : transformationOptions . fetch_format ,
176177 g : transformationOptions . gravity ,
177178 pg : transformationOptions . page ,
178179 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 ] ) ,
180181 sp : transformationOptions . streaming_profile ,
181182 vc : processVideoParams ( transformationOptions . video_codec ) ,
182183 vs : transformationOptions . video_sampling
0 commit comments