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
c83a5281
Commit
c83a5281
authored
Apr 29, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flashsv2enc: remove useless casts
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ba9c4db5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
flashsv2enc.c
libavcodec/flashsv2enc.c
+6
-6
No files found.
libavcodec/flashsv2enc.c
View file @
c83a5281
...
...
@@ -315,14 +315,14 @@ static int write_block(Block * b, uint8_t * buf, int buf_size)
buf
[
buf_pos
++
]
=
b
->
flags
;
if
(
b
->
flags
&
HAS_DIFF_BLOCKS
)
{
buf
[
buf_pos
++
]
=
(
uint8_t
)
(
b
->
start
);
buf
[
buf_pos
++
]
=
(
uint8_t
)
(
b
->
len
);
buf
[
buf_pos
++
]
=
(
b
->
start
);
buf
[
buf_pos
++
]
=
(
b
->
len
);
}
if
(
b
->
flags
&
ZLIB_PRIME_COMPRESS_CURRENT
)
{
//This feature of the format is poorly understood, and as of now, unused.
buf
[
buf_pos
++
]
=
(
uint8_t
)
(
b
->
col
);
buf
[
buf_pos
++
]
=
(
uint8_t
)
(
b
->
row
);
buf
[
buf_pos
++
]
=
(
b
->
col
);
buf
[
buf_pos
++
]
=
(
b
->
row
);
}
memcpy
(
buf
+
buf_pos
,
b
->
data
,
b
->
data_size
);
...
...
@@ -437,10 +437,10 @@ static int write_pixel_15_7(Palette * palette, uint8_t * dest, const uint8_t * s
int
c7
=
pixel_color7_fast
(
palette
,
c15
);
int
d7
=
chroma_diff
(
color
,
palette
->
colors
[
c7
]);
if
(
dist
+
d15
>=
d7
)
{
dest
[
0
]
=
(
uint8_t
)
c7
;
dest
[
0
]
=
c7
;
return
1
;
}
else
{
dest
[
0
]
=
0x80
|
(
uint8_t
)
(
c15
>>
8
);
dest
[
0
]
=
0x80
|
(
c15
>>
8
);
dest
[
1
]
=
c15
&
0xff
;
return
2
;
}
...
...
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