Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c5c882ab
Commit
c5c882ab
authored
Jan 06, 2012
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x264.c: check x264_build around 10-bit and 422/444 handling
parent
42e415b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
modules/codec/x264.c
modules/codec/x264.c
+3
-5
No files found.
modules/codec/x264.c
View file @
c5c882ab
...
@@ -767,14 +767,11 @@ static int Open ( vlc_object_t *p_this )
...
@@ -767,14 +767,11 @@ static int Open ( vlc_object_t *p_this )
p_enc
->
fmt_in
.
i_codec
=
VLC_CODEC_I420
;
p_enc
->
fmt_in
.
i_codec
=
VLC_CODEC_I420
;
p_sys
->
i_colorspace
=
X264_CSP_I420
;
p_sys
->
i_colorspace
=
X264_CSP_I420
;
#if X264_BUILD >= 118
char
*
psz_profile
=
var_GetString
(
p_enc
,
SOUT_CFG_PREFIX
"profile"
);
char
*
psz_profile
=
var_GetString
(
p_enc
,
SOUT_CFG_PREFIX
"profile"
);
if
(
psz_profile
)
if
(
psz_profile
)
{
{
#if X264_CSP_HIGH_DEPTH
const
int
mask
=
x264_bit_depth
>
8
?
X264_CSP_HIGH_DEPTH
:
0
;
int
mask
=
x264_bit_depth
>
8
?
X264_CSP_HIGH_DEPTH
:
0
;
#else
int
mask
=
0
;
#endif
if
(
!
strcmp
(
psz_profile
,
"high10"
)
)
if
(
!
strcmp
(
psz_profile
,
"high10"
)
)
{
{
p_enc
->
fmt_in
.
i_codec
=
mask
?
VLC_CODEC_I420_10L
:
VLC_CODEC_I420
;
p_enc
->
fmt_in
.
i_codec
=
mask
?
VLC_CODEC_I420_10L
:
VLC_CODEC_I420
;
...
@@ -792,6 +789,7 @@ static int Open ( vlc_object_t *p_this )
...
@@ -792,6 +789,7 @@ static int Open ( vlc_object_t *p_this )
}
}
}
}
free
(
psz_profile
);
free
(
psz_profile
);
#endif //X264_BUILD
p_enc
->
pf_encode_video
=
Encode
;
p_enc
->
pf_encode_video
=
Encode
;
p_enc
->
pf_encode_audio
=
NULL
;
p_enc
->
pf_encode_audio
=
NULL
;
...
...
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