Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
08fe874f
Commit
08fe874f
authored
Aug 30, 2011
by
Alex Converse
Committed by
Michael Niedermayer
Aug 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: use av_clip_int16 for audio clipping
parent
ef244265
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
ffmpeg.c
ffmpeg.c
+1
-3
No files found.
ffmpeg.c
View file @
08fe874f
...
...
@@ -1703,9 +1703,7 @@ static int output_packet(InputStream *ist, int ist_index,
volp
=
samples
;
for
(
i
=
0
;
i
<
(
decoded_data_size
/
sizeof
(
short
));
i
++
)
{
int
v
=
((
*
volp
)
*
audio_volume
+
128
)
>>
8
;
if
(
v
<
-
32768
)
v
=
-
32768
;
if
(
v
>
32767
)
v
=
32767
;
*
volp
++
=
v
;
*
volp
++
=
av_clip_int16
(
v
);
}
}
}
...
...
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