Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
6014f533
Commit
6014f533
authored
Jun 06, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg/encoder.c, modules/stream_out/transcode.c: backport of 11318 and 11319.
parent
c3922002
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
modules/codec/ffmpeg/encoder.c
modules/codec/ffmpeg/encoder.c
+1
-1
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+15
-4
No files found.
modules/codec/ffmpeg/encoder.c
View file @
6014f533
...
...
@@ -419,7 +419,7 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
if
(
p_sys
->
b_trellis
)
p_context
->
flags
|=
CODEC_FLAG_TRELLIS_QUANT
;
if
(
p_sys
->
i_qmin
==
p_sys
->
i_qmax
)
if
(
p_sys
->
i_qmin
>
0
&&
p_sys
->
i_qmin
==
p_sys
->
i_qmax
)
p_context
->
flags
|=
CODEC_FLAG_QSCALE
;
#if LIBAVCODEC_BUILD >= 4702
...
...
modules/stream_out/transcode.c
View file @
6014f533
...
...
@@ -1082,7 +1082,7 @@ static int transcode_audio_new( sout_stream_t *p_stream,
/* Final checks to see if conversions were successful */
if
(
fmt_last
.
i_codec
!=
id
->
p_encoder
->
fmt_in
.
i_codec
)
{
msg_
Dbg
(
p_stream
,
"no audio filter found (%4.4s->%4.4s)"
,
msg_
Err
(
p_stream
,
"no audio filter found (%4.4s->%4.4s)"
,
(
char
*
)
&
fmt_last
.
i_codec
,
(
char
*
)
&
id
->
p_encoder
->
fmt_in
.
i_codec
);
transcode_audio_close
(
p_stream
,
id
);
...
...
@@ -1091,10 +1091,11 @@ static int transcode_audio_new( sout_stream_t *p_stream,
if
(
fmt_last
.
audio
.
i_channels
!=
id
->
p_encoder
->
fmt_in
.
audio
.
i_channels
)
{
msg_
Dbg
(
p_stream
,
"no audio filter found for mixing from"
msg_
Err
(
p_stream
,
"no audio filter found for mixing from"
" %i to %i channels"
,
fmt_last
.
audio
.
i_channels
,
id
->
p_encoder
->
fmt_in
.
audio
.
i_channels
);
#if 0
/* FIXME : this might work, but only if the encoder is restarted */
id->p_encoder->fmt_in.audio.i_channels = fmt_last.audio.i_channels;
id->p_encoder->fmt_out.audio.i_channels = fmt_last.audio.i_channels;
...
...
@@ -1104,15 +1105,25 @@ static int transcode_audio_new( sout_stream_t *p_stream,
id->p_encoder->fmt_out.audio.i_physical_channels =
id->p_encoder->fmt_out.audio.i_original_channels =
fmt_last.audio.i_physical_channels;
#else
transcode_audio_close
(
p_stream
,
id
);
return
VLC_EGENERIC
;
#endif
}
if
(
fmt_last
.
audio
.
i_rate
!=
id
->
p_encoder
->
fmt_in
.
audio
.
i_rate
)
{
msg_
Dbg
(
p_stream
,
"no audio filter found for resampling from"
msg_
Err
(
p_stream
,
"no audio filter found for resampling from"
" %iHz to %iHz"
,
fmt_last
.
audio
.
i_rate
,
id
->
p_encoder
->
fmt_in
.
audio
.
i_rate
);
#if 0
/* FIXME : this might work, but only if the encoder is restarted */
id->p_encoder->fmt_in.audio.i_rate = fmt_last.audio.i_rate;
id->p_encoder->fmt_out.audio.i_rate = fmt_last.audio.i_rate;
#else
transcode_audio_close
(
p_stream
,
id
);
return
VLC_EGENERIC
;
#endif
}
/* FIXME: Hack for mp3 transcoding support */
...
...
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