Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
3cc971d2
Commit
3cc971d2
authored
Mar 11, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg/encoder.c, modules/stream_out/transcode.c: cosmetic fixes.
parent
1e9df876
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
modules/codec/ffmpeg/encoder.c
modules/codec/ffmpeg/encoder.c
+4
-0
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+1
-8
No files found.
modules/codec/ffmpeg/encoder.c
View file @
3cc971d2
...
...
@@ -440,6 +440,10 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
}
else
if
(
p_enc
->
fmt_in
.
i_cat
==
AUDIO_ES
)
{
/* work around bug in libmp3lame encoding */
if
(
i_codec_id
==
CODEC_ID_MP3
&&
p_enc
->
fmt_in
.
audio
.
i_channels
>
2
)
p_enc
->
fmt_in
.
audio
.
i_channels
=
2
;
p_enc
->
fmt_in
.
i_codec
=
AOUT_FMT_S16_NE
;
p_context
->
sample_rate
=
p_enc
->
fmt_in
.
audio
.
i_rate
;
p_context
->
channels
=
p_enc
->
fmt_in
.
audio
.
i_channels
;
...
...
modules/stream_out/transcode.c
View file @
3cc971d2
...
...
@@ -370,13 +370,6 @@ static int Open( vlc_object_t *p_this )
if
(
p_sys
->
i_acodec
)
{
if
(
(
strncmp
(
(
char
*
)
&
p_sys
->
i_acodec
,
"mp3"
,
3
)
==
0
)
&&
(
p_sys
->
i_channels
>
2
)
)
{
msg_Warn
(
p_stream
,
"%d channels invalid for mp3, forcing to 2"
,
p_sys
->
i_channels
);
p_sys
->
i_channels
=
2
;
}
msg_Dbg
(
p_stream
,
"codec audio=%4.4s %dHz %d channels %dKb/s"
,
(
char
*
)
&
p_sys
->
i_acodec
,
p_sys
->
i_sample_rate
,
p_sys
->
i_channels
,
p_sys
->
i_abitrate
/
1000
);
...
...
@@ -470,7 +463,7 @@ static int Open( vlc_object_t *p_this )
if
(
p_sys
->
i_scodec
)
{
msg_Dbg
(
p_stream
,
"codec spu=%4.4s"
,
(
char
*
)
&
p_sys
->
i_
a
codec
);
msg_Dbg
(
p_stream
,
"codec spu=%4.4s"
,
(
char
*
)
&
p_sys
->
i_
s
codec
);
}
var_Get
(
p_stream
,
SOUT_CFG_PREFIX
"soverlay"
,
&
val
);
...
...
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