Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
audiowmark
Commits
246f59de
Commit
246f59de
authored
Mar 15, 2020
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sync algorithm regression in block decoder.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
07fd966c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
wmget.cc
src/wmget.cc
+15
-1
No files found.
src/wmget.cc
View file @
246f59de
...
...
@@ -373,8 +373,22 @@ public:
return
result_scores
;
}
init_up_down
(
wav_data
,
mode
);
scan_silence
(
wav_data
);
if
(
mode
==
Mode
::
CLIP
)
{
/* in clip mode we optimize handling large areas of padding which is silent */
scan_silence
(
wav_data
);
}
else
{
/* in block mode we don't do anything special for silence at beginning/end */
wav_data_start
=
0
;
if
(
samples
.
size
())
wav_data_end
=
wav_data
.
samples
().
size
()
-
1
;
else
wav_data_end
=
0
;
}
vector
<
float
>
fft_db
;
vector
<
char
>
have_frame
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment