Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
d9c29a2c
Commit
d9c29a2c
authored
Dec 09, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/wavpack: use std::copy_n()
parent
f5172e6b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
WavpackDecoderPlugin.cxx
src/decoder/plugins/WavpackDecoderPlugin.cxx
+2
-6
No files found.
src/decoder/plugins/WavpackDecoderPlugin.cxx
View file @
d9c29a2c
...
@@ -98,9 +98,7 @@ format_samples_int(int bytes_per_sample, void *buffer, uint32_t count)
...
@@ -98,9 +98,7 @@ format_samples_int(int bytes_per_sample, void *buffer, uint32_t count)
static_assert
(
sizeof
(
*
dst
)
<=
sizeof
(
*
src
),
"Wrong size"
);
static_assert
(
sizeof
(
*
dst
)
<=
sizeof
(
*
src
),
"Wrong size"
);
/* pass through and align 8-bit samples */
/* pass through and align 8-bit samples */
while
(
count
--
)
{
std
::
copy_n
(
src
,
count
,
dst
);
*
dst
++
=
*
src
++
;
}
break
;
break
;
}
}
case
2
:
{
case
2
:
{
...
@@ -108,9 +106,7 @@ format_samples_int(int bytes_per_sample, void *buffer, uint32_t count)
...
@@ -108,9 +106,7 @@ format_samples_int(int bytes_per_sample, void *buffer, uint32_t count)
static_assert
(
sizeof
(
*
dst
)
<=
sizeof
(
*
src
),
"Wrong size"
);
static_assert
(
sizeof
(
*
dst
)
<=
sizeof
(
*
src
),
"Wrong size"
);
/* pass through and align 16-bit samples */
/* pass through and align 16-bit samples */
while
(
count
--
)
{
std
::
copy_n
(
src
,
count
,
dst
);
*
dst
++
=
*
src
++
;
}
break
;
break
;
}
}
...
...
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