Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
6ff44730
Commit
6ff44730
authored
Oct 04, 2018
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
av1_metadata: Fix constraint on setting chroma_sample_position
It can't be set for 4:2:2 streams.
parent
50a2347b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
av1_metadata_bsf.c
libavcodec/av1_metadata_bsf.c
+2
-6
No files found.
libavcodec/av1_metadata_bsf.c
View file @
6ff44730
...
...
@@ -86,13 +86,9 @@ static int av1_metadata_update_sequence_header(AVBSFContext *bsf,
}
if
(
ctx
->
chroma_sample_position
>=
0
)
{
if
(
clc
->
mono_chrome
)
{
if
(
clc
->
mono_chrome
||
!
clc
->
subsampling_x
||
!
clc
->
subsampling_y
)
{
av_log
(
bsf
,
AV_LOG_WARNING
,
"Warning: chroma_sample_position "
"is not meaningful for monochrome streams.
\n
"
);
}
else
if
(
clc
->
subsampling_x
==
0
&&
clc
->
subsampling_y
==
0
)
{
av_log
(
bsf
,
AV_LOG_WARNING
,
"Warning: chroma_sample_position "
"is not meaningful for non-chroma-subsampled streams.
\n
"
);
"can only be set for 4:2:0 streams.
\n
"
);
}
else
{
clc
->
chroma_sample_position
=
ctx
->
chroma_sample_position
;
}
...
...
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