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
bd7f7d6c
Commit
bd7f7d6c
authored
Sep 16, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shorten: use av_clip_int16() for output sample clipping
parent
069ada46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
shorten.c
libavcodec/shorten.c
+1
-1
No files found.
libavcodec/shorten.c
View file @
bd7f7d6c
...
@@ -254,7 +254,7 @@ static int16_t * interleave_buffer(int16_t *samples, int nchan, int blocksize, i
...
@@ -254,7 +254,7 @@ static int16_t * interleave_buffer(int16_t *samples, int nchan, int blocksize, i
int
i
,
chan
;
int
i
,
chan
;
for
(
i
=
0
;
i
<
blocksize
;
i
++
)
for
(
i
=
0
;
i
<
blocksize
;
i
++
)
for
(
chan
=
0
;
chan
<
nchan
;
chan
++
)
for
(
chan
=
0
;
chan
<
nchan
;
chan
++
)
*
samples
++
=
FFMIN
(
buffer
[
chan
][
i
],
32768
);
*
samples
++
=
av_clip_int16
(
buffer
[
chan
][
i
]
);
return
samples
;
return
samples
;
}
}
...
...
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