@@ -192,7 +192,7 @@ width = width % 4 == 1 ? width + 3 : \
192192# for hires 3D footage, upscaled with lanczos
193193# handheld and primary (dedupped): do nothing
194194# 512kb: do ARC with lanczos
195- g = hq && !hd \
195+ resized = hq && !hd \
196196 ? hq_hiResSrc \
197197 ? Lanczos4Resize(hq_baseWidth * hq_scale, hq_baseHeight * hq_scale) \
198198 : handHeld || pass != 0 \
@@ -205,15 +205,15 @@ g = hq && !hd \
205205 ? last \
206206 : Lanczos4Resize(width, height)
207207
208- # If ms enabled, we use parameters of "g " to apply to all segments
209- g = ms ? g .AppendSegment(ms_base, ms_start, ms_end, ms_format, resizer).ConvertToRGB32() : g
208+ # If ms enabled, we use parameters of "resized " to apply to all segments
209+ resized = ms ? resized .AppendSegment(ms_base, ms_start, ms_end, ms_format, resizer).ConvertToRGB32() : resized
210210
211211# Logo
212- d = ImageSource(file=file, start=0, end=int((g .FrameRate * 2) - 1), fps=g .FrameRate) \
213- .ConvertToRGB32().AssumeFPS(g )
214- e = BlankClip(d , audio_rate=g .AudioRate, channels=g .AudioChannels)
215- f = AudioDub(d, e ).Lanczos4Resize(g .width, g .height)
216- last = hdvb ? f .PointResize(g .width / 2, g .height) : f ++ g
212+ logoVideo = ImageSource(file=file, start=0, end=int((resized .FrameRate * 2) - 1), fps=resized .FrameRate) \
213+ .ConvertToRGB32().AssumeFPS(resized )
214+ logoAudio = BlankClip(logoVideo , audio_rate=resized .AudioRate, channels=resized .AudioChannels)
215+ logo = AudioDub(logoVideo, logoAudio ).Lanczos4Resize(resized .width, resized .height)
216+ last = hdvb ? logo .PointResize(resized .width / 2, resized .height) : logo ++ resized
217217
218218# Virtual Boy
219219left = hdvb ? last ++ left.PointResize(last.width, last.height) : 0
0 commit comments