Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
b3e29297
Commit
b3e29297
authored
Feb 21, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed vorbis encoder.
parent
dcc1d93d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
modules/codec/vorbis.c
modules/codec/vorbis.c
+7
-8
No files found.
modules/codec/vorbis.c
View file @
b3e29297
...
@@ -818,15 +818,14 @@ static int OpenEncoder( vlc_object_t *p_this )
...
@@ -818,15 +818,14 @@ static int OpenEncoder( vlc_object_t *p_this )
/* Create and store headers */
/* Create and store headers */
vorbis_analysis_headerout
(
&
p_sys
->
vd
,
&
p_sys
->
vc
,
vorbis_analysis_headerout
(
&
p_sys
->
vd
,
&
p_sys
->
vc
,
&
header
[
0
],
&
header
[
1
],
&
header
[
2
]);
&
header
[
0
],
&
header
[
1
],
&
header
[
2
]);
p_enc
->
fmt_out
.
i_extra
=
3
*
2
+
header
[
0
].
bytes
+
for
(
int
i
=
0
;
i
<
3
;
i
++
)
header
[
1
].
bytes
+
header
[
2
].
bytes
;
p_extra
=
p_enc
->
fmt_out
.
p_extra
=
xmalloc
(
p_enc
->
fmt_out
.
i_extra
);
for
(
i
=
0
;
i
<
3
;
i
++
)
{
{
*
(
p_extra
++
)
=
header
[
i
].
bytes
>>
8
;
if
(
xiph_AppendHeaders
(
&
p_enc
->
fmt_out
.
i_extra
,
&
p_enc
->
fmt_out
.
p_extra
,
*
(
p_extra
++
)
=
header
[
i
].
bytes
&
0xFF
;
header
[
i
].
bytes
,
header
[
i
].
packet
)
)
memcpy
(
p_extra
,
header
[
i
].
packet
,
header
[
i
].
bytes
);
{
p_extra
+=
header
[
i
].
bytes
;
p_enc
->
fmt_out
.
i_extra
=
0
;
p_enc
->
fmt_out
.
p_extra
=
NULL
;
}
}
}
p_sys
->
i_channels
=
p_enc
->
fmt_in
.
audio
.
i_channels
;
p_sys
->
i_channels
=
p_enc
->
fmt_in
.
audio
.
i_channels
;
...
...
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