Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
7050e779
Commit
7050e779
authored
Sep 01, 2004
by
gbazin
Browse files
* modules/codec/dmo/dmo.c: specify required input chroma for video encoding.
parent
0a666ec5
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/codec/dmo/dmo.c
View file @
7050e779
...
...
@@ -1105,10 +1105,7 @@ static int EncoderSetVideoType( encoder_t *p_enc, IMediaObject *p_dmo )
i_err
=
p_dmo
->
vt
->
SetOutputType
(
p_dmo
,
0
,
&
dmo_type
,
0
);
p_vih
=
(
VIDEOINFOHEADER
*
)
dmo_type
.
pbFormat
;
p_enc
->
fmt_out
.
video
.
i_width
=
p_enc
->
fmt_in
.
video
.
i_width
;
p_enc
->
fmt_out
.
video
.
i_height
=
p_enc
->
fmt_in
.
video
.
i_height
;
p_enc
->
fmt_out
.
video
.
i_aspect
=
VOUT_ASPECT_FACTOR
*
p_enc
->
fmt_out
.
video
.
i_width
/
p_enc
->
fmt_out
.
video
.
i_height
;
p_enc
->
fmt_in
.
i_codec
=
VLC_FOURCC
(
'I'
,
'4'
,
'2'
,
'0'
);
DMOFreeMediaType
(
&
dmo_type
);
if
(
i_err
)
...
...
@@ -1136,7 +1133,8 @@ static int EncoderSetAudioType( encoder_t *p_enc, IMediaObject *p_dmo )
fourcc_to_wf_tag
(
p_enc
->
fmt_out
.
i_codec
,
&
i_tag
);
if
(
i_tag
==
0
)
return
VLC_EGENERIC
;
p_enc
->
fmt_in
.
audio
.
i_bitspersample
=
16
;
// Forced
p_enc
->
fmt_in
.
i_codec
=
AOUT_FMT_S16_NE
;
p_enc
->
fmt_in
.
audio
.
i_bitspersample
=
16
;
/* We first need to choose an output type from the predefined
* list of choices (we cycle through the list to select the best match) */
...
...
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