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
21541086
Commit
21541086
authored
May 19, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/flacenc: Mark pointers/array arguments const which are not changed
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
5dfcb4f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
flacenc.c
libavcodec/flacenc.c
+5
-5
No files found.
libavcodec/flacenc.c
View file @
21541086
...
...
@@ -509,7 +509,7 @@ static void copy_samples(FlacEncodeContext *s, const void *samples)
}
static
uint64_t
rice_count_exact
(
int32_t
*
res
,
int
n
,
int
k
)
static
uint64_t
rice_count_exact
(
const
int32_t
*
res
,
int
n
,
int
k
)
{
int
i
;
uint64_t
count
=
0
;
...
...
@@ -637,12 +637,12 @@ static uint64_t calc_optimal_rice_params(RiceContext *rc, int porder,
}
static
void
calc_sum_top
(
int
pmax
,
int
kmax
,
uint32_t
*
data
,
int
n
,
int
pred_order
,
static
void
calc_sum_top
(
int
pmax
,
int
kmax
,
const
uint32_t
*
data
,
int
n
,
int
pred_order
,
uint64_t
sums
[
32
][
MAX_PARTITIONS
])
{
int
i
,
k
;
int
parts
;
uint32_t
*
res
,
*
res_end
;
const
uint32_t
*
res
,
*
res_end
;
/* sums for highest level */
parts
=
(
1
<<
pmax
);
...
...
@@ -681,7 +681,7 @@ static uint64_t calc_rice_params(RiceContext *rc,
uint32_t
udata
[
FLAC_MAX_BLOCKSIZE
],
uint64_t
sums
[
32
][
MAX_PARTITIONS
],
int
pmin
,
int
pmax
,
int32_t
*
data
,
int
n
,
int
pred_order
,
int
exact
)
const
int32_t
*
data
,
int
n
,
int
pred_order
,
int
exact
)
{
int
i
;
uint64_t
bits
[
MAX_PARTITION_ORDER
+
1
];
...
...
@@ -1038,7 +1038,7 @@ static void remove_wasted_bits(FlacEncodeContext *s)
}
static
int
estimate_stereo_mode
(
int32_t
*
left_ch
,
int32_t
*
right_ch
,
int
n
,
static
int
estimate_stereo_mode
(
const
int32_t
*
left_ch
,
const
int32_t
*
right_ch
,
int
n
,
int
max_rice_param
)
{
int
i
,
best
;
...
...
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