Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
152dbb02
Commit
152dbb02
authored
Dec 20, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg/encoder.c: use pix_fmt specified by encoder.
parent
d8712f2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
modules/codec/ffmpeg/encoder.c
modules/codec/ffmpeg/encoder.c
+11
-0
No files found.
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
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