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
9a949cdf
Commit
9a949cdf
authored
Jun 11, 2017
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/gdv: fix compiler warnings
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
c9484148
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
gdv.c
libavcodec/gdv.c
+10
-8
No files found.
libavcodec/gdv.c
View file @
9a949cdf
...
@@ -235,14 +235,16 @@ static int decompress_68(AVCodecContext *avctx, unsigned skip, unsigned use8)
...
@@ -235,14 +235,16 @@ static int decompress_68(AVCodecContext *avctx, unsigned skip, unsigned use8)
int
len
=
(
subtag
)
+
3
;
int
len
=
(
subtag
)
+
3
;
lz_copy
(
pb
,
g2
,
(
offs
)
-
4096
,
len
);
lz_copy
(
pb
,
g2
,
(
offs
)
-
4096
,
len
);
}
else
{
}
else
{
int
real_off
,
len
,
c1
,
c2
;
if
(
offs
==
0xFFF
)
{
if
(
offs
==
0xFFF
)
{
return
0
;
return
0
;
}
}
int
real_off
=
((
offs
>>
4
)
&
0x7
)
+
1
;
real_off
=
((
offs
>>
4
)
&
0x7
)
+
1
;
int
len
=
((
offs
&
0xF
)
+
2
)
*
2
;
len
=
((
offs
&
0xF
)
+
2
)
*
2
;
int
c1
=
gdv
->
frame
[
bytestream2_tell_p
(
pb
)
-
real_off
];
c1
=
gdv
->
frame
[
bytestream2_tell_p
(
pb
)
-
real_off
];
int
c2
=
gdv
->
frame
[
bytestream2_tell_p
(
pb
)
-
real_off
+
1
];
c2
=
gdv
->
frame
[
bytestream2_tell_p
(
pb
)
-
real_off
+
1
];
for
(
i
=
0
;
i
<
len
/
2
;
i
++
)
{
for
(
i
=
0
;
i
<
len
/
2
;
i
++
)
{
bytestream2_put_byte
(
pb
,
c1
);
bytestream2_put_byte
(
pb
,
c1
);
bytestream2_put_byte
(
pb
,
c2
);
bytestream2_put_byte
(
pb
,
c2
);
...
@@ -259,10 +261,10 @@ static int decompress_68(AVCodecContext *avctx, unsigned skip, unsigned use8)
...
@@ -259,10 +261,10 @@ static int decompress_68(AVCodecContext *avctx, unsigned skip, unsigned use8)
int
len
;
int
len
;
int
off
;
int
off
;
if
(
use8
)
{
if
(
use8
)
{
int
b
=
bytestream2_get_byte
(
gb
);
int
q
,
b
=
bytestream2_get_byte
(
gb
);
if
((
b
&
0xC0
)
==
0xC0
)
{
if
((
b
&
0xC0
)
==
0xC0
)
{
len
=
((
b
&
0x3F
))
+
8
;
len
=
((
b
&
0x3F
))
+
8
;
int
q
=
read_bits32
(
&
bits
,
gb
,
4
);
q
=
read_bits32
(
&
bits
,
gb
,
4
);
off
=
(
q
<<
8
)
+
(
bytestream2_get_byte
(
gb
))
+
1
;
off
=
(
q
<<
8
)
+
(
bytestream2_get_byte
(
gb
))
+
1
;
}
else
{
}
else
{
int
ofs1
;
int
ofs1
;
...
@@ -276,14 +278,14 @@ static int decompress_68(AVCodecContext *avctx, unsigned skip, unsigned use8)
...
@@ -276,14 +278,14 @@ static int decompress_68(AVCodecContext *avctx, unsigned skip, unsigned use8)
off
=
(
ofs1
<<
8
)
+
(
bytestream2_get_byte
(
gb
))
-
4096
;
off
=
(
ofs1
<<
8
)
+
(
bytestream2_get_byte
(
gb
))
-
4096
;
}
}
}
else
{
}
else
{
int
b
=
bytestream2_get_byte
(
gb
);
int
ofs1
,
b
=
bytestream2_get_byte
(
gb
);
if
((
b
>>
4
)
==
0xF
)
{
if
((
b
>>
4
)
==
0xF
)
{
len
=
bytestream2_get_byte
(
gb
)
+
21
;
len
=
bytestream2_get_byte
(
gb
)
+
21
;
}
else
{
}
else
{
len
=
(
b
>>
4
)
+
6
;
len
=
(
b
>>
4
)
+
6
;
}
}
int
ofs1
=
(
b
&
0xF
);
ofs1
=
(
b
&
0xF
);
off
=
(
ofs1
<<
8
)
+
bytestream2_get_byte
(
gb
)
-
4096
;
off
=
(
ofs1
<<
8
)
+
bytestream2_get_byte
(
gb
)
-
4096
;
}
}
lz_copy
(
pb
,
g2
,
off
,
len
);
lz_copy
(
pb
,
g2
,
off
,
len
);
...
...
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