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
935442b5
Commit
935442b5
authored
Aug 15, 2001
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log2 to av_log2
Originally committed as revision 101 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0c23ead1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
h263.c
libavcodec/h263.c
+1
-1
mpegaudio.c
libavcodec/mpegaudio.c
+2
-2
No files found.
libavcodec/h263.c
View file @
935442b5
...
@@ -1178,7 +1178,7 @@ int mpeg4_decode_picture_header(MpegEncContext * s)
...
@@ -1178,7 +1178,7 @@ int mpeg4_decode_picture_header(MpegEncContext * s)
skip_bits1
(
&
s
->
gb
);
/* marker */
skip_bits1
(
&
s
->
gb
);
/* marker */
time_increment_resolution
=
get_bits
(
&
s
->
gb
,
16
);
time_increment_resolution
=
get_bits
(
&
s
->
gb
,
16
);
s
->
time_increment_bits
=
log2
(
time_increment_resolution
-
1
)
+
1
;
s
->
time_increment_bits
=
av_
log2
(
time_increment_resolution
-
1
)
+
1
;
if
(
s
->
time_increment_bits
<
1
)
if
(
s
->
time_increment_bits
<
1
)
s
->
time_increment_bits
=
1
;
s
->
time_increment_bits
=
1
;
skip_bits1
(
&
s
->
gb
);
/* marker */
skip_bits1
(
&
s
->
gb
);
/* marker */
...
...
libavcodec/mpegaudio.c
View file @
935442b5
...
@@ -317,7 +317,7 @@ static void filter(MpegAudioContext *s, int ch, short *samples, int incr)
...
@@ -317,7 +317,7 @@ static void filter(MpegAudioContext *s, int ch, short *samples, int incr)
for
(
i
=
0
;
i
<
32
;
i
++
)
{
for
(
i
=
0
;
i
<
32
;
i
++
)
{
norm
|=
abs
(
tmp1
[
i
]);
norm
|=
abs
(
tmp1
[
i
]);
}
}
n
=
log2
(
norm
)
-
12
;
n
=
av_
log2
(
norm
)
-
12
;
if
(
n
>
0
)
{
if
(
n
>
0
)
{
for
(
i
=
0
;
i
<
32
;
i
++
)
for
(
i
=
0
;
i
<
32
;
i
++
)
tmp1
[
i
]
>>=
n
;
tmp1
[
i
]
>>=
n
;
...
@@ -364,7 +364,7 @@ static void compute_scale_factors(unsigned char scale_code[SBLIMIT],
...
@@ -364,7 +364,7 @@ static void compute_scale_factors(unsigned char scale_code[SBLIMIT],
}
}
/* compute the scale factor index using log 2 computations */
/* compute the scale factor index using log 2 computations */
if
(
vmax
>
0
)
{
if
(
vmax
>
0
)
{
n
=
log2
(
vmax
);
n
=
av_
log2
(
vmax
);
/* n is the position of the MSB of vmax. now
/* n is the position of the MSB of vmax. now
use at most 2 compares to find the index */
use at most 2 compares to find the index */
index
=
(
21
-
n
)
*
3
-
3
;
index
=
(
21
-
n
)
*
3
-
3
;
...
...
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