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
eb60dddc
Commit
eb60dddc
authored
Jun 20, 2003
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some warning fixes
Originally committed as revision 1977 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
a7d3e772
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
asv1.c
libavcodec/asv1.c
+3
-3
h264.c
libavcodec/h264.c
+1
-1
mjpeg.c
libavcodec/mjpeg.c
+1
-1
No files found.
libavcodec/asv1.c
View file @
eb60dddc
...
@@ -125,9 +125,9 @@ static inline int decode_block(ASV1Context *a, DCTELEM block[64]){
...
@@ -125,9 +125,9 @@ static inline int decode_block(ASV1Context *a, DCTELEM block[64]){
}
}
if
(
ccp
&
1
)
block
[
a
->
scantable
.
permutated
[
4
*
i
+
0
]]
=
(
get_level
(
&
a
->
gb
)
*
a
->
intra_matrix
[
4
*
i
+
0
])
>>
4
;
if
(
ccp
&
1
)
block
[
a
->
scantable
.
permutated
[
4
*
i
+
0
]]
=
(
get_level
(
&
a
->
gb
)
*
a
->
intra_matrix
[
4
*
i
+
0
])
>>
4
;
if
(
ccp
&
2
)
block
[
a
->
scantable
.
permutated
[
4
*
i
+
1
]]
=
(
get_level
(
&
a
->
gb
)
*
a
->
intra_matrix
[
4
*
i
+
1
])
>>
4
;
;
if
(
ccp
&
2
)
block
[
a
->
scantable
.
permutated
[
4
*
i
+
1
]]
=
(
get_level
(
&
a
->
gb
)
*
a
->
intra_matrix
[
4
*
i
+
1
])
>>
4
;
if
(
ccp
&
4
)
block
[
a
->
scantable
.
permutated
[
4
*
i
+
2
]]
=
(
get_level
(
&
a
->
gb
)
*
a
->
intra_matrix
[
4
*
i
+
2
])
>>
4
;
;
if
(
ccp
&
4
)
block
[
a
->
scantable
.
permutated
[
4
*
i
+
2
]]
=
(
get_level
(
&
a
->
gb
)
*
a
->
intra_matrix
[
4
*
i
+
2
])
>>
4
;
if
(
ccp
&
8
)
block
[
a
->
scantable
.
permutated
[
4
*
i
+
3
]]
=
(
get_level
(
&
a
->
gb
)
*
a
->
intra_matrix
[
4
*
i
+
3
])
>>
4
;
;
if
(
ccp
&
8
)
block
[
a
->
scantable
.
permutated
[
4
*
i
+
3
]]
=
(
get_level
(
&
a
->
gb
)
*
a
->
intra_matrix
[
4
*
i
+
3
])
>>
4
;
}
}
}
}
...
...
libavcodec/h264.c
View file @
eb60dddc
...
@@ -4009,8 +4009,8 @@ static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){
...
@@ -4009,8 +4009,8 @@ static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){
MpegEncContext
*
const
s
=
&
h
->
s
;
MpegEncContext
*
const
s
=
&
h
->
s
;
AVCodecContext
*
const
avctx
=
s
->
avctx
;
AVCodecContext
*
const
avctx
=
s
->
avctx
;
int
buf_index
=
0
;
int
buf_index
=
0
;
int
i
;
#if 0
#if 0
int i;
for(i=0; i<32; i++){
for(i=0; i<32; i++){
printf("%X ", buf[i]);
printf("%X ", buf[i]);
}
}
...
...
libavcodec/mjpeg.c
View file @
eb60dddc
...
@@ -1599,7 +1599,7 @@ out:
...
@@ -1599,7 +1599,7 @@ out:
static
int
mjpeg_decode_com
(
MJpegDecodeContext
*
s
)
static
int
mjpeg_decode_com
(
MJpegDecodeContext
*
s
)
{
{
/* XXX: verify len field validity */
/* XXX: verify len field validity */
unsigned
int
len
=
get_bits
(
&
s
->
gb
,
16
);
int
len
=
get_bits
(
&
s
->
gb
,
16
);
if
(
len
>=
2
&&
len
<
32768
)
{
if
(
len
>=
2
&&
len
<
32768
)
{
/* XXX: any better upper bound */
/* XXX: any better upper bound */
uint8_t
*
cbuf
=
av_malloc
(
len
-
1
);
uint8_t
*
cbuf
=
av_malloc
(
len
-
1
);
...
...
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