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
152dbb02
Commit
152dbb02
authored
Dec 20, 2004
by
gbazin
Browse files
* modules/codec/ffmpeg/encoder.c: use pix_fmt specified by encoder.
parent
d8712f2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/codec/ffmpeg/encoder.c
View file @
152dbb02
...
...
@@ -361,6 +361,17 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
p_sys
->
p_buffer_out
=
malloc
(
AVCODEC_MAX_VIDEO_FRAME_SIZE
);
p_enc
->
fmt_in
.
i_codec
=
VLC_FOURCC
(
'I'
,
'4'
,
'2'
,
'0'
);
p_context
->
pix_fmt
=
E_
(
GetFfmpegChroma
)(
p_enc
->
fmt_in
.
i_codec
);
if
(
p_codec
->
pix_fmts
)
{
const
enum
PixelFormat
*
p
=
p_codec
->
pix_fmts
;
for
(
;
*
p
!=
-
1
;
p
++
)
{
if
(
*
p
==
p_context
->
pix_fmt
)
break
;
}
if
(
*
p
==
-
1
)
p_context
->
pix_fmt
=
p_codec
->
pix_fmts
[
0
];
p_enc
->
fmt_in
.
i_codec
=
E_
(
GetVlcChroma
)(
p_context
->
pix_fmt
);
}
if
(
p_sys
->
b_strict_rc
)
{
...
...
Write
Preview
Supports
Markdown
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