Skip to content

Commit fe9e074

Browse files
guidocellaDudemanguy
authored andcommitted
various: remove trailing whitespace
1 parent d27c85b commit fe9e074

12 files changed

Lines changed: 17 additions & 17 deletions

File tree

DOCS/man/af.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,14 @@ Available filters are:
161161
Would play media at 1.2x normal speed, with audio at normal pitch.
162162
Changing playback speed would change pitch, leaving audio tempo at
163163
1.2x.
164-
164+
165165
``scaletempo2[=option1:option2:...]``
166166
Scales audio tempo without altering pitch.
167-
The algorithm is ported from chromium and uses the
167+
The algorithm is ported from chromium and uses the
168168
Waveform Similarity Overlap-and-add (WSOLA) method.
169169
It seems to achieve a higher audio quality than scaletempo and rubberband.
170170

171-
By default, the ``search-interval`` and ``window-size`` parameters
171+
By default, the ``search-interval`` and ``window-size`` parameters
172172
have the same values as in chromium.
173173

174174
``min-speed=<speed>``
@@ -180,7 +180,7 @@ Available filters are:
180180

181181
``search-interval=<amount>``
182182
Length in milliseconds to search for best overlap position. (default: 30)
183-
183+
184184
``window-size=<amount>``
185185
Length in milliseconds of the overlap-and-add window. (default: 20)
186186

TOOLS/dylib-unhell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def lib_name(lib):
6969

7070
def process_libraries(libs_dict, binary):
7171
libs_set = set(libs_dict)
72-
# Remove binary from libs_set to prevent a duplicate of the binary being
72+
# Remove binary from libs_set to prevent a duplicate of the binary being
7373
# added to the libs directory.
7474
libs_set.remove(binary)
7575

TOOLS/macos-sdk-version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def find_macos_sdk():
2323
if not sdk:
2424
sdk = check_output([xcrun, '--sdk', 'macosx', '--show-sdk-path'],
2525
encoding="UTF-8")
26-
26+
2727
# find macOS SDK paths and version
2828
if sdk_version == '0.0':
2929
# show-sdk-build-version: is not available on older command line tools, but returns a build version (eg 17A360)

audio/filter/af_scaletempo2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ const struct mp_user_filter_entry af_scaletempo2 = {
230230
.wsola_search_interval_ms = 30,
231231
},
232232
.options = (const struct m_option[]) {
233-
{"search-interval",
233+
{"search-interval",
234234
OPT_FLOAT(wsola_search_interval_ms), M_RANGE(1, 1000)},
235235
{"window-size",
236236
OPT_FLOAT(ola_window_size_ms), M_RANGE(1, 1000)},

audio/filter/af_scaletempo2_internals.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,9 +743,9 @@ void mp_scaletempo2_init(struct mp_scaletempo2 *p, int channels, int rate)
743743
p->channels = channels;
744744

745745
p->samples_per_second = rate;
746-
p->num_candidate_blocks = (int)(p->opts->wsola_search_interval_ms
746+
p->num_candidate_blocks = (int)(p->opts->wsola_search_interval_ms
747747
* p->samples_per_second / 1000);
748-
p->ola_window_size = (int)(p->opts->ola_window_size_ms
748+
p->ola_window_size = (int)(p->opts->ola_window_size_ms
749749
* p->samples_per_second / 1000);
750750
// Make sure window size in an even number.
751751
p->ola_window_size += p->ola_window_size & 1;

audio/filter/af_scaletempo2_internals.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This filter was ported from Chromium
1+
// This filter was ported from Chromium
22
// (https://chromium.googlesource.com/chromium/chromium/+/51ed77e3f37a9a9b80d6d0a8259e84a8ca635259/media/filters/audio_renderer_algorithm.cc)
33
//
44
// Copyright 2015 The Chromium Authors. All rights reserved.
@@ -118,4 +118,4 @@ int mp_scaletempo2_fill_input_buffer(struct mp_scaletempo2 *p,
118118
uint8_t **planes, int frame_size, bool final);
119119
int mp_scaletempo2_fill_buffer(struct mp_scaletempo2 *p,
120120
float **dest, int dest_size, float playback_rate);
121-
bool mp_scaletempo2_frames_available(struct mp_scaletempo2 *p);
121+
bool mp_scaletempo2_frames_available(struct mp_scaletempo2 *p);

audio/out/ao_sndio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2013 Christian Neukirchen <[email protected]>
44
* Copyright (c) 2020 Rozhuk Ivan <[email protected]>
55
* Copyright (c) 2021 Andrew Krasavin <[email protected]>
6-
*
6+
*
77
* Permission to use, copy, modify, and distribute this software for any
88
* purpose with or without fee is hereby granted, provided that the above
99
* copyright notice and this permission notice appear in all copies.

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ if audiounit['deps'].found() and audiounit['symbol']
812812
audiounit += {'use': true}
813813
endif
814814

815-
coreaudio = dependency('appleframeworks', modules: ['CoreFoundation', 'CoreAudio',
815+
coreaudio = dependency('appleframeworks', modules: ['CoreFoundation', 'CoreAudio',
816816
'AudioUnit', 'AudioToolbox'], required: get_option('coreaudio'))
817817
if coreaudio.found()
818818
dependencies += coreaudio

player/lua/stats.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ local function get_kbinfo_lines(width)
485485
-- key/subject pre/post formatting for terminal/ass.
486486
-- key/subject alignment uses spaces (with mono font if ass)
487487
-- word-wrapping is disabled for ass, or cut at 79 for the terminal
488-
local LTR = string.char(0xE2, 0x80, 0x8E) -- U+200E Left To Right mark
488+
local LTR = string.char(0xE2, 0x80, 0x8E) -- U+200E Left To Right mark
489489
local term = not o.use_ass
490490
local kpre = term and "" or format("{\\q2\\fn%s}%s", o.font_mono, LTR)
491491
local kpost = term and " " or format(" {\\fn%s}", o.font)

sub/filter_sdh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ static void remove_leading_hyphen_space(struct sd_filter *sd, int start_pos,
297297
{
298298
int old_pos = buf->pos;
299299
if (start_pos < 0 || start_pos >= old_pos)
300-
return;
300+
return;
301301
append(sd, buf, '\0'); // \0 terminate for reading
302302

303303
// move past leading ass tags

0 commit comments

Comments
 (0)