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
6777aa63
Commit
6777aa63
authored
Dec 07, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/takdec: s/get_b/get_bits_esc4
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
4ed0c35c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
takdec.c
libavcodec/takdec.c
+4
-4
No files found.
libavcodec/takdec.c
View file @
6777aa63
...
...
@@ -389,7 +389,7 @@ static int decode_coeffs(TAKDecContext *s, int32_t *dst, int length)
return
0
;
}
static
int
get_b
(
GetBitContext
*
gb
)
static
int
get_b
its_esc4
(
GetBitContext
*
gb
)
{
if
(
get_bits1
(
gb
))
return
get_bits
(
gb
,
4
)
+
1
;
...
...
@@ -432,7 +432,7 @@ static int decode_subframe(TAKDecContext *s, int32_t *ptr, int subframe_size,
decode_lpc
(
ptr
,
lpc
,
s
->
filter_order
);
}
s
->
xred
=
get_b
(
gb
);
s
->
xred
=
get_b
its_esc4
(
gb
);
s
->
size
=
get_bits1
(
gb
)
+
5
;
if
(
get_bits1
(
gb
))
{
...
...
@@ -546,7 +546,7 @@ static int decode_channel(TAKDecContext *s, int chan)
int
i
=
0
,
ret
,
prev
=
0
;
int
left
=
s
->
nb_samples
-
1
;
s
->
sample_shift
[
chan
]
=
get_b
(
gb
);
s
->
sample_shift
[
chan
]
=
get_b
its_esc4
(
gb
);
if
(
s
->
sample_shift
[
chan
]
>=
avctx
->
bits_per_raw_sample
)
return
AVERROR_INVALIDDATA
;
...
...
@@ -593,7 +593,7 @@ static int decorrelate(TAKDecContext *s, int c1, int c2, int length)
int
a
,
b
,
i
,
x
,
tmp
;
if
(
s
->
dmode
>
3
)
{
s
->
dshift
=
get_b
(
gb
);
s
->
dshift
=
get_b
its_esc4
(
gb
);
if
(
s
->
dmode
>
5
)
{
if
(
get_bits1
(
gb
))
s
->
filter_order
=
16
;
...
...
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