Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
9eec23b8
Commit
9eec23b8
authored
Jul 01, 2015
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
g2meet: use av_ceil_log2 instead of a custom function
parent
4ccccd6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
g2meet.c
libavcodec/g2meet.c
+1
-11
No files found.
libavcodec/g2meet.c
View file @
9eec23b8
...
...
@@ -386,16 +386,6 @@ static int jpg_decode_data(JPGContext *c, int width, int height,
#define G_shift 8
#define B_shift 0
static
inline
int
log2_ceil
(
uint32_t
x
)
{
int
c
=
0
;
for
(
--
x
;
x
>
0
;
x
>>=
1
)
c
++
;
return
c
;
}
/* improved djb2 hash from http://www.cse.yorku.ca/~oz/hash.html */
static
int
djb2_hash
(
uint32_t
key
)
{
...
...
@@ -701,7 +691,7 @@ static int epic_decode_run_length(ePICContext *dc, int x, int y, int tile_width,
if
(
!
(
above_row
[
pos
]
==
pix
))
break
;
run
=
pos
-
start_pos
-
1
;
idx
=
log2_ceil
(
run
);
idx
=
av_ceil_log2
(
run
);
if
(
ff_els_decode_bit
(
&
dc
->
els_ctx
,
&
dc
->
prev_row_rung
[
idx
]))
*
pRun
+=
run
;
else
{
...
...
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