Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Samo Golež
VLC
Commits
7cb75e56
Commit
7cb75e56
authored
Apr 21, 2021
by
Zhao Zhili
Committed by
Thomas Guillem
May 11, 2021
Browse files
converter/format: fix payload size
parent
ae406f9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/audio_filter/converter/format.c
View file @
7cb75e56
...
...
@@ -415,6 +415,7 @@ static block_t *Fl64toFl32(filter_t *filter, block_t *b)
float
*
dst
=
(
float
*
)
src
;
for
(
size_t
i
=
b
->
i_buffer
/
8
;
i
--
;)
*
(
dst
++
)
=
*
(
src
++
);
b
->
i_buffer
/=
2
;
VLC_UNUSED
(
filter
);
return
b
;
...
...
@@ -435,6 +436,7 @@ static block_t *Fl64toS32(filter_t *filter, block_t *b)
else
*
(
dst
++
)
=
lround
(
s
);
}
b
->
i_buffer
/=
2
;
VLC_UNUSED
(
filter
);
return
b
;
}
...
...
Write
Preview
Supports
Markdown
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