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
724f3471
Commit
724f3471
authored
Jul 30, 2010
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics: indentation
Originally committed as revision 24609 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6d263f41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
28 deletions
+28
-28
flacenc.c
libavcodec/flacenc.c
+28
-28
No files found.
libavcodec/flacenc.c
View file @
724f3471
...
...
@@ -1114,36 +1114,36 @@ static void output_subframe(FlacEncodeContext *s, FlacSubframe *sub)
while
(
res
<
frame_end
)
put_sbits
(
&
s
->
pb
,
sub
->
obits
,
*
res
++
);
}
else
{
/* warm-up samples */
for
(
i
=
0
;
i
<
sub
->
order
;
i
++
)
put_sbits
(
&
s
->
pb
,
sub
->
obits
,
*
res
++
);
/* LPC coefficients */
if
(
sub
->
type
==
FLAC_SUBFRAME_LPC
)
{
int
cbits
=
s
->
options
.
lpc_coeff_precision
;
put_bits
(
&
s
->
pb
,
4
,
cbits
-
1
);
put_sbits
(
&
s
->
pb
,
5
,
sub
->
shift
);
/* warm-up samples */
for
(
i
=
0
;
i
<
sub
->
order
;
i
++
)
put_sbits
(
&
s
->
pb
,
cbits
,
sub
->
coefs
[
i
]);
}
put_sbits
(
&
s
->
pb
,
sub
->
obits
,
*
res
++
);
/* rice-encoded block */
put_bits
(
&
s
->
pb
,
2
,
0
);
/* partition order */
porder
=
sub
->
rc
.
porder
;
psize
=
s
->
frame
.
blocksize
>>
porder
;
put_bits
(
&
s
->
pb
,
4
,
porder
);
/* residual */
part_end
=
&
sub
->
residual
[
psize
];
for
(
p
=
0
;
p
<
1
<<
porder
;
p
++
)
{
int
k
=
sub
->
rc
.
params
[
p
];
put_bits
(
&
s
->
pb
,
4
,
k
);
while
(
res
<
part_end
)
set_sr_golomb_flac
(
&
s
->
pb
,
*
res
++
,
k
,
INT32_MAX
,
0
);
part_end
=
FFMIN
(
frame_end
,
part_end
+
psize
);
}
/* LPC coefficients */
if
(
sub
->
type
==
FLAC_SUBFRAME_LPC
)
{
int
cbits
=
s
->
options
.
lpc_coeff_precision
;
put_bits
(
&
s
->
pb
,
4
,
cbits
-
1
);
put_sbits
(
&
s
->
pb
,
5
,
sub
->
shift
);
for
(
i
=
0
;
i
<
sub
->
order
;
i
++
)
put_sbits
(
&
s
->
pb
,
cbits
,
sub
->
coefs
[
i
]);
}
/* rice-encoded block */
put_bits
(
&
s
->
pb
,
2
,
0
);
/* partition order */
porder
=
sub
->
rc
.
porder
;
psize
=
s
->
frame
.
blocksize
>>
porder
;
put_bits
(
&
s
->
pb
,
4
,
porder
);
/* residual */
part_end
=
&
sub
->
residual
[
psize
];
for
(
p
=
0
;
p
<
1
<<
porder
;
p
++
)
{
int
k
=
sub
->
rc
.
params
[
p
];
put_bits
(
&
s
->
pb
,
4
,
k
);
while
(
res
<
part_end
)
set_sr_golomb_flac
(
&
s
->
pb
,
*
res
++
,
k
,
INT32_MAX
,
0
);
part_end
=
FFMIN
(
frame_end
,
part_end
+
psize
);
}
}
}
...
...
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