Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
3b420ec9
Commit
3b420ec9
authored
Apr 14, 2008
by
Rafaël Carré
Browse files
Sets the output channel configuration when opening the decoder
Signed-off-by: Meuuh the cow
parent
df61d33b
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/codec/ffmpeg/audio.c
View file @
3b420ec9
...
...
@@ -112,6 +112,18 @@ int E_(InitAudioDec)( decoder_t *p_dec, AVCodecContext *p_context,
/* ***** Fill p_context with init values ***** */
p_sys
->
p_context
->
sample_rate
=
p_dec
->
fmt_in
.
audio
.
i_rate
;
p_sys
->
p_context
->
channels
=
p_dec
->
fmt_in
.
audio
.
i_channels
;
if
(
!
p_dec
->
fmt_in
.
audio
.
i_physical_channels
)
{
msg_Warn
(
p_dec
,
"Physical channel configuration not set : guessing"
);
p_dec
->
fmt_in
.
audio
.
i_original_channels
=
p_dec
->
fmt_in
.
audio
.
i_physical_channels
=
pi_channels_maps
[
p_sys
->
p_context
->
channels
];
}
p_dec
->
fmt_out
.
audio
.
i_physical_channels
=
p_dec
->
fmt_out
.
audio
.
i_original_channels
=
p_dec
->
fmt_in
.
audio
.
i_physical_channels
;
p_sys
->
p_context
->
block_align
=
p_dec
->
fmt_in
.
audio
.
i_blockalign
;
p_sys
->
p_context
->
bit_rate
=
p_dec
->
fmt_in
.
i_bitrate
;
p_sys
->
p_context
->
bits_per_sample
=
p_dec
->
fmt_in
.
audio
.
i_bitspersample
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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