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
b0f29db5
Commit
b0f29db5
authored
Feb 20, 2012
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark mutable static data const where appropriate.
parent
e48a70e6
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
26 additions
and
26 deletions
+26
-26
avprobe.c
avprobe.c
+6
-6
avserver.c
avserver.c
+1
-1
aacdec.c
libavcodec/aacdec.c
+1
-1
libvpxenc.c
libavcodec/libvpxenc.c
+1
-1
libxvid_rc.c
libavcodec/libxvid_rc.c
+1
-1
vf_boxblur.c
libavfilter/vf_boxblur.c
+1
-1
vf_crop.c
libavfilter/vf_crop.c
+1
-1
vf_drawtext.c
libavfilter/vf_drawtext.c
+3
-3
vf_lut.c
libavfilter/vf_lut.c
+1
-1
vf_overlay.c
libavfilter/vf_overlay.c
+1
-1
vf_pad.c
libavfilter/vf_pad.c
+1
-1
vf_scale.c
libavfilter/vf_scale.c
+1
-1
vf_select.c
libavfilter/vf_select.c
+1
-1
vf_setpts.c
libavfilter/vf_setpts.c
+1
-1
vf_settb.c
libavfilter/vf_settb.c
+1
-1
vsrc_nullsrc.c
libavfilter/vsrc_nullsrc.c
+1
-1
matroskadec.c
libavformat/matroskadec.c
+1
-1
eval.c
libavutil/eval.c
+2
-2
No files found.
avprobe.c
View file @
b0f29db5
...
...
@@ -48,13 +48,13 @@ static const OptionDef options[];
static
const
char
*
input_filename
;
static
AVInputFormat
*
iformat
=
NULL
;
static
const
char
*
binary_unit_prefixes
[]
=
{
""
,
"Ki"
,
"Mi"
,
"Gi"
,
"Ti"
,
"Pi"
};
static
const
char
*
decimal_unit_prefixes
[]
=
{
""
,
"K"
,
"M"
,
"G"
,
"T"
,
"P"
};
static
const
char
*
const
binary_unit_prefixes
[]
=
{
""
,
"Ki"
,
"Mi"
,
"Gi"
,
"Ti"
,
"Pi"
};
static
const
char
*
const
decimal_unit_prefixes
[]
=
{
""
,
"K"
,
"M"
,
"G"
,
"T"
,
"P"
};
static
const
char
*
unit_second_str
=
"s"
;
static
const
char
*
unit_hertz_str
=
"Hz"
;
static
const
char
*
unit_byte_str
=
"byte"
;
static
const
char
*
unit_bit_per_second_str
=
"bit/s"
;
static
const
char
unit_second_str
[]
=
"s"
;
static
const
char
unit_hertz_str
[]
=
"Hz"
;
static
const
char
unit_byte_str
[]
=
"byte"
;
static
const
char
unit_bit_per_second_str
[]
=
"bit/s"
;
void
exit_program
(
int
ret
)
{
...
...
avserver.c
View file @
b0f29db5
...
...
@@ -1865,7 +1865,7 @@ static int http_parse_request(HTTPContext *c)
static
void
fmt_bytecount
(
AVIOContext
*
pb
,
int64_t
count
)
{
static
const
char
*
suffix
=
" kMGTP"
;
static
const
char
suffix
[]
=
" kMGTP"
;
const
char
*
s
;
for
(
s
=
suffix
;
count
>=
100000
&&
s
[
1
];
count
/=
1000
,
s
++
);
...
...
libavcodec/aacdec.c
View file @
b0f29db5
...
...
@@ -1015,7 +1015,7 @@ static int decode_scalefactors(AACContext *ac, float sf[120], GetBitContext *gb,
int
offset
[
3
]
=
{
global_gain
,
global_gain
-
90
,
0
};
int
clipped_offset
;
int
noise_flag
=
1
;
static
const
char
*
sf_str
[
3
]
=
{
"Global gain"
,
"Noise gain"
,
"Intensity stereo position"
};
static
const
char
*
const
sf_str
[
3
]
=
{
"Global gain"
,
"Noise gain"
,
"Intensity stereo position"
};
for
(
g
=
0
;
g
<
ics
->
num_window_groups
;
g
++
)
{
for
(
i
=
0
;
i
<
ics
->
max_sfb
;)
{
int
run_end
=
band_type_run_end
[
idx
];
...
...
libavcodec/libvpxenc.c
View file @
b0f29db5
...
...
@@ -66,7 +66,7 @@ typedef struct VP8EncoderContext {
}
VP8Context
;
/** String mappings for enum vp8e_enc_control_id */
static
const
char
*
ctlidstr
[]
=
{
static
const
char
*
c
onst
c
tlidstr
[]
=
{
[
VP8E_UPD_ENTROPY
]
=
"VP8E_UPD_ENTROPY"
,
[
VP8E_UPD_REFERENCE
]
=
"VP8E_UPD_REFERENCE"
,
[
VP8E_USE_REFERENCE
]
=
"VP8E_USE_REFERENCE"
,
...
...
libavcodec/libxvid_rc.c
View file @
b0f29db5
...
...
@@ -47,7 +47,7 @@ int ff_xvid_rate_control_init(MpegEncContext *s){
}
for
(
i
=
0
;
i
<
s
->
rc_context
.
num_entries
;
i
++
){
static
const
char
*
frame_types
=
" ipbs"
;
static
const
char
frame_types
[]
=
" ipbs"
;
char
tmp
[
256
];
RateControlEntry
*
rce
;
...
...
libavfilter/vf_boxblur.c
View file @
b0f29db5
...
...
@@ -30,7 +30,7 @@
#include "libavutil/pixdesc.h"
#include "avfilter.h"
static
const
char
*
var_names
[]
=
{
static
const
char
*
const
var_names
[]
=
{
"w"
,
"h"
,
"cw"
,
...
...
libavfilter/vf_crop.c
View file @
b0f29db5
...
...
@@ -32,7 +32,7 @@
#include "libavutil/imgutils.h"
#include "libavutil/mathematics.h"
static
const
char
*
var_names
[]
=
{
static
const
char
*
const
var_names
[]
=
{
"E"
,
"PHI"
,
"PI"
,
...
...
libavfilter/vf_drawtext.c
View file @
b0f29db5
...
...
@@ -49,7 +49,7 @@
#include FT_FREETYPE_H
#include FT_GLYPH_H
static
const
char
*
var_names
[]
=
{
static
const
char
*
const
var_names
[]
=
{
"E"
,
"PHI"
,
"PI"
,
...
...
@@ -64,8 +64,8 @@ static const char *var_names[] = {
NULL
};
static
const
char
*
fun2_names
[]
=
{
"rand"
,
static
const
char
*
const
fun2_names
[]
=
{
"rand"
};
static
double
drand
(
void
*
opaque
,
double
min
,
double
max
)
...
...
libavfilter/vf_lut.c
View file @
b0f29db5
...
...
@@ -31,7 +31,7 @@
#include "avfilter.h"
#include "internal.h"
static
const
char
*
var_names
[]
=
{
static
const
char
*
const
var_names
[]
=
{
"E"
,
"PHI"
,
"PI"
,
...
...
libavfilter/vf_overlay.c
View file @
b0f29db5
...
...
@@ -33,7 +33,7 @@
#include "libavutil/mathematics.h"
#include "internal.h"
static
const
char
*
var_names
[]
=
{
static
const
char
*
const
var_names
[]
=
{
"E"
,
"PHI"
,
"PI"
,
...
...
libavfilter/vf_pad.c
View file @
b0f29db5
...
...
@@ -35,7 +35,7 @@
#include "libavutil/mathematics.h"
#include "drawutils.h"
static
const
char
*
var_names
[]
=
{
static
const
char
*
const
var_names
[]
=
{
"PI"
,
"PHI"
,
"E"
,
...
...
libavfilter/vf_scale.c
View file @
b0f29db5
...
...
@@ -30,7 +30,7 @@
#include "libavutil/pixdesc.h"
#include "libswscale/swscale.h"
static
const
char
*
var_names
[]
=
{
static
const
char
*
const
var_names
[]
=
{
"PI"
,
"PHI"
,
"E"
,
...
...
libavfilter/vf_select.c
View file @
b0f29db5
...
...
@@ -28,7 +28,7 @@
#include "libavutil/mathematics.h"
#include "avfilter.h"
static
const
char
*
var_names
[]
=
{
static
const
char
*
const
var_names
[]
=
{
"E"
,
///< Euler number
"PHI"
,
///< golden ratio
"PI"
,
///< greek pi
...
...
libavfilter/vf_setpts.c
View file @
b0f29db5
...
...
@@ -30,7 +30,7 @@
#include "libavutil/mathematics.h"
#include "avfilter.h"
static
const
char
*
var_names
[]
=
{
static
const
char
*
const
var_names
[]
=
{
"E"
,
///< Euler number
"INTERLACED"
,
///< tell if the current frame is interlaced
"N"
,
///< frame number (starting at zero)
...
...
libavfilter/vf_settb.c
View file @
b0f29db5
...
...
@@ -30,7 +30,7 @@
#include "avfilter.h"
#include "internal.h"
static
const
char
*
var_names
[]
=
{
static
const
char
*
const
var_names
[]
=
{
"E"
,
"PHI"
,
"PI"
,
...
...
libavfilter/vsrc_nullsrc.c
View file @
b0f29db5
...
...
@@ -27,7 +27,7 @@
#include "libavutil/parseutils.h"
#include "avfilter.h"
static
const
char
*
var_names
[]
=
{
static
const
char
*
const
var_names
[]
=
{
"E"
,
"PHI"
,
"PI"
,
...
...
libavformat/matroskadec.c
View file @
b0f29db5
...
...
@@ -514,7 +514,7 @@ static EbmlSyntax matroska_clusters[] = {
{
0
}
};
static
const
char
*
matroska_doctypes
[]
=
{
"matroska"
,
"webm"
};
static
const
char
*
const
matroska_doctypes
[]
=
{
"matroska"
,
"webm"
};
/*
* Return: Whether we reached the end of a level in the hierarchy or not.
...
...
libavutil/eval.c
View file @
b0f29db5
...
...
@@ -543,13 +543,13 @@ int av_expr_parse_and_eval(double *d, const char *s,
#undef printf
#include <string.h>
static
double
const_values
[]
=
{
static
const
double
const_values
[]
=
{
M_PI
,
M_E
,
0
};
static
const
char
*
const_names
[]
=
{
static
const
char
*
const
const
_names
[]
=
{
"PI"
,
"E"
,
0
...
...
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