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
d2975f8d
Commit
d2975f8d
authored
Oct 15, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warning fixes
Originally committed as revision 1044 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ac2830ec
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
11 deletions
+20
-11
dsputil.c
libavcodec/dsputil.c
+1
-1
h263.c
libavcodec/h263.c
+18
-9
mpeg12.c
libavcodec/mpeg12.c
+1
-1
No files found.
libavcodec/dsputil.c
View file @
d2975f8d
...
@@ -1512,7 +1512,7 @@ void clear_blocks_c(DCTELEM *blocks)
...
@@ -1512,7 +1512,7 @@ void clear_blocks_c(DCTELEM *blocks)
void
dsputil_init
(
void
)
void
dsputil_init
(
void
)
{
{
int
i
,
j
;
int
i
;
for
(
i
=
0
;
i
<
256
;
i
++
)
cropTbl
[
i
+
MAX_NEG_CROP
]
=
i
;
for
(
i
=
0
;
i
<
256
;
i
++
)
cropTbl
[
i
+
MAX_NEG_CROP
]
=
i
;
for
(
i
=
0
;
i
<
MAX_NEG_CROP
;
i
++
)
{
for
(
i
=
0
;
i
<
MAX_NEG_CROP
;
i
++
)
{
...
...
libavcodec/h263.c
View file @
d2975f8d
...
@@ -1860,8 +1860,10 @@ static inline void mpeg4_encode_dc(PutBitContext * s, int level, int n)
...
@@ -1860,8 +1860,10 @@ static inline void mpeg4_encode_dc(PutBitContext * s, int level, int n)
static
inline
void
mpeg4_encode_block
(
MpegEncContext
*
s
,
DCTELEM
*
block
,
int
n
,
int
intra_dc
,
static
inline
void
mpeg4_encode_block
(
MpegEncContext
*
s
,
DCTELEM
*
block
,
int
n
,
int
intra_dc
,
UINT8
*
scan_table
,
PutBitContext
*
dc_pb
,
PutBitContext
*
ac_pb
)
UINT8
*
scan_table
,
PutBitContext
*
dc_pb
,
PutBitContext
*
ac_pb
)
{
{
int
last
,
i
,
last_non_zero
,
sign
;
int
i
,
last_non_zero
;
int
code
;
#if 0 //variables for the outcommented version
int code, sign, last;
#endif
const
RLTable
*
rl
;
const
RLTable
*
rl
;
UINT32
*
bits_tab
;
UINT32
*
bits_tab
;
UINT8
*
len_tab
;
UINT8
*
len_tab
;
...
@@ -4250,13 +4252,20 @@ static int decode_vol_header(MpegEncContext *s, GetBitContext *gb){
...
@@ -4250,13 +4252,20 @@ static int decode_vol_header(MpegEncContext *s, GetBitContext *gb){
if
(
s
->
scalability
)
{
if
(
s
->
scalability
)
{
GetBitContext
bak
=
*
gb
;
GetBitContext
bak
=
*
gb
;
int
dummy
=
s
->
hierachy_type
=
get_bits1
(
gb
);
int
ref_layer_id
;
int
ref_layer_id
=
get_bits
(
gb
,
4
);
int
ref_layer_sampling_dir
;
int
ref_layer_sampling_dir
=
get_bits1
(
gb
);
int
h_sampling_factor_n
;
int
h_sampling_factor_n
=
get_bits
(
gb
,
5
);
int
h_sampling_factor_m
;
int
h_sampling_factor_m
=
get_bits
(
gb
,
5
);
int
v_sampling_factor_n
;
int
v_sampling_factor_n
=
get_bits
(
gb
,
5
);
int
v_sampling_factor_m
;
int
v_sampling_factor_m
=
get_bits
(
gb
,
5
);
s
->
hierachy_type
=
get_bits1
(
gb
);
ref_layer_id
=
get_bits
(
gb
,
4
);
ref_layer_sampling_dir
=
get_bits1
(
gb
);
h_sampling_factor_n
=
get_bits
(
gb
,
5
);
h_sampling_factor_m
=
get_bits
(
gb
,
5
);
v_sampling_factor_n
=
get_bits
(
gb
,
5
);
v_sampling_factor_m
=
get_bits
(
gb
,
5
);
s
->
enhancement_type
=
get_bits1
(
gb
);
s
->
enhancement_type
=
get_bits1
(
gb
);
if
(
h_sampling_factor_n
==
0
||
h_sampling_factor_m
==
0
if
(
h_sampling_factor_n
==
0
||
h_sampling_factor_m
==
0
...
...
libavcodec/mpeg12.c
View file @
d2975f8d
...
@@ -698,7 +698,7 @@ static inline int get_qscale(MpegEncContext *s)
...
@@ -698,7 +698,7 @@ static inline int get_qscale(MpegEncContext *s)
static
int
mpeg_decode_mb
(
MpegEncContext
*
s
,
static
int
mpeg_decode_mb
(
MpegEncContext
*
s
,
DCTELEM
block
[
6
][
64
])
DCTELEM
block
[
6
][
64
])
{
{
int
i
,
j
,
k
,
cbp
,
val
,
code
,
mb_type
,
motion_type
;
int
i
,
j
,
k
,
cbp
,
val
,
mb_type
,
motion_type
;
dprintf
(
"decode_mb: x=%d y=%d
\n
"
,
s
->
mb_x
,
s
->
mb_y
);
dprintf
(
"decode_mb: x=%d y=%d
\n
"
,
s
->
mb_x
,
s
->
mb_y
);
...
...
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